hv: fix '(void) missing for discarded return value'

MISRA-C requires that the function call in which the returned
value is discarded shall be clearly indicated using (void).

This patch fixes the violations related to the following
function calls.
- instr_check_gva
- vlapic_set_local_intr
- prepare_vm
- enter_s3
- emulate_instruction
- ptdev_intx_pin_remap
- register_mmio_emulation_handler

v1 -> v2:
 * discard the return value of enter_s3

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
Shiqing Gao
2018-11-14 15:22:45 +08:00
committed by lijinxia
parent a646fcf761
commit 6971cc832a
7 changed files with 19 additions and 13 deletions

View File

@@ -2293,7 +2293,10 @@ int decode_instruction(struct acrn_vcpu *vcpu)
return retval;
}
} else {
instr_check_gva(vcpu, emul_ctxt, cpu_mode);
retval = instr_check_gva(vcpu, emul_ctxt, cpu_mode);
if (retval < 0) {
return retval;
}
}
return (int)(emul_ctxt->vie.opsize);