acrn-hypervisor/hypervisor/include/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: Derive decryption key from Seed for Trusty to decrypt attestation keybox 2018-11-20 09:22:37 +08:00
atomic.h hv: Remove the up_count_spinlock and use atomic for up_count 2018-11-02 10:43:50 +08:00
bits.h hv: lib: fix "Procedure has more than one exit point" 2018-12-03 11:10:04 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
mem_mgt.h hv: mmu: remove alloc_page() API 2018-11-02 13:15:48 +08:00
rtl.h hv: fix integer violations 2018-10-31 15:01:57 +08:00
spinlock.h hv: clean up spinlock 2018-09-14 09:44:44 +08:00
sprintf.h fix "Casting operation to a pointer" 2018-11-06 13:37:33 +08:00
types.h hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
util.h hv: clean up some header files 2018-09-13 13:11:57 +08:00