acrn-hypervisor/hypervisor/lib
Huihuang Shi ba44417d96 hv: lib: fix "Procedure has more than one exit point"
IEC 61508,ISO 26262 standards highly recommend single-exit rule.

Reduce the count of the "return entries".
Fix the violations which is comply with the cases list below:
1.Function has 2 return entries.
2.The first return entry is used to return the error code of
checking variable whether is valid.

Fix the violations in "if else" format.

Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-12-03 11:10:04 +08:00
..
crypto hv: add brackets to make operator expression more readable 2018-11-29 11:10:22 +08:00
memory.c hv: lib: fix "Procedure has more than one exit point" 2018-12-03 11:10:04 +08:00
misc.c hv: merge hv_lib.h and hypervisor.h 2018-09-27 15:55:41 +08:00
sprintf.c hv: add brackets to make operator expression more readable 2018-11-29 11:10:22 +08:00
string.c hv:Fix Implict conversion:actual to formal param 2018-09-18 13:09:39 +08:00