acrn-hypervisor/hypervisor/arch/x86
Huihuang Shi ddb548367a hv: cpu: 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
..
boot modularization: boot component 2018-12-03 09:09:44 +08:00
configs HV: allow disabling serial port via Kconfig 2018-11-30 15:00:05 +08:00
guest hv: fix type conversion violations 2018-11-30 18:14:59 +08:00
Kconfig Kconfig: remove PLATFORM configuration option 2018-11-30 23:40:41 +08:00
assign.c hv:Rename ptdev to ptirq for some APIs 2018-11-30 13:27:49 +08:00
cpu.c hv: cpu: fix "Procedure has more than one exit point" 2018-12-03 11:10:04 +08:00
cpu_state_tbl.c HV: add px cx data of bxt n3350 SOC 2018-11-09 13:07:53 +08:00
cpuid.c hv: cpu: fix "Procedure has more than one exit point" 2018-12-03 11:10:04 +08:00
ept.c hv: ept: set snp control when modify 2018-11-09 13:00:51 +08:00
gdt.c fix "Procedure is not pure assembler" 2018-11-13 16:28:58 +08:00
io.c doc: replace return with retval 2018-11-30 14:55:17 +08:00
ioapic.c hv: fix type conversion violations 2018-11-30 18:14:59 +08:00
irq.c modularization: boot component -- move functions 2018-12-03 09:09:44 +08:00
lapic.c hv: lapic: fix a theoretic infinite loop when clear lapic isr 2018-11-22 12:44:21 +08:00
mmu.c hv: trusty: refine trusty memory region mapping 2018-11-30 16:49:27 +08:00
mtrr.c hv: fix integer violations 2018-11-14 12:46:34 +08:00
notify.c Fix to kernel hang in smp_call_function 2018-10-26 13:44:18 +08:00
page.c hv: trusty: reserve memory for trusty 2018-11-30 16:49:27 +08:00
pagetable.c hv: mmu: replace dynamic memory allocation in memory 2018-11-02 13:15:48 +08:00
pm.c modularization: boot component -- move functions 2018-12-03 09:09:44 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
static_checks.c modularization: boot component 2018-12-03 09:09:44 +08:00
timer.c fix "Procedure is not pure assembler" 2018-11-13 16:28:58 +08:00
trampoline.c modularization: boot component -- move functions 2018-12-03 09:09:44 +08:00
trusty.c hv: fix type conversion violations 2018-11-30 18:14:59 +08:00
virq.c hv: fix 'Function return value potentially unused' 2018-11-30 06:54:54 +08:00
vmexit.c hypervisor: use "wbinvd" carefully in RT environment 2018-11-16 10:24:23 +08:00
vmx.c hv: fix type conversion violations 2018-11-30 18:14:59 +08:00
vmx_asm.S fix spec_ctrl msr save/restore 2018-08-16 16:24:13 +08:00
vtd.c hv: fix 'Function return value potentially unused' 2018-11-30 06:54:54 +08:00
wakeup.S hv: fix 'User name starts with underscore' 2018-09-30 14:45:37 +08:00