acrn-hypervisor/hypervisor/arch/x86/guest
Shiqing Gao db3c5746f3 hv: fix 'Function return value potentially unused'
MISRA-C requires that if the return value of a function call is
assigned to a local variable, this value shall be used in all paths.

This patch moves the variable assignment right before the moment that
the variable is used.

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-11-30 06:54:54 +08:00
..
guest.c hv: fix 'Expression is not Boolean' 2018-11-08 13:04:11 +08:00
instr_emul.c hv: fix 'Function return value potentially unused' 2018-11-30 06:54:54 +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: fix 'Function return value potentially unused' 2018-11-30 06:54:54 +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