acrn-hypervisor/hypervisor/arch/x86/guest
Huihuang Shi 17a6d9446e hv: guest: 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-11-29 15:03:48 +08:00
..
guest.c hv: fix 'Expression is not Boolean' 2018-11-08 13:04:11 +08:00
instr_emul.c hv: guest: fix "Procedure has more than one exit point" 2018-11-29 15:03:48 +08:00
instr_emul.h hv: guest: fix "Procedure has more than one exit point" 2018-11-29 15:03:48 +08:00
pm.c hv: guest: fix "Procedure has more than one exit point" 2018-11-29 15:03:48 +08:00
ucode.c HV:treewide:rename vcpu data structure 2018-11-05 15:35:49 +08:00
vcpu.c hv: switch IA32_TSC_AUX between host/guest through VM Controls 2018-11-27 09:26:29 +08:00
vlapic_priv.h hv: self-IPI APIC register in x2APIC mode of guest vLAPIC 2018-11-02 13:48:43 +08:00
vlapic.c hv: vlapic: fix "Procedure has more than one exit point" 2018-11-27 14:43:16 +08:00
vm.c hv: guest: fix "Procedure has more than one exit point" 2018-11-29 15:03:48 +08:00
vmcall.c hv: hypercall: clean up HV_DEBUG usage 2018-11-20 10:01:50 +08:00
vmsr.c hv: switch IA32_TSC_AUX between host/guest through VM Controls 2018-11-27 09:26:29 +08:00