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.
- vlapic_set_intr
- vlapic_intr_edge

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
Shiqing Gao
2018-11-13 14:32:04 +08:00
committed by wenlingz
parent b3b24320d4
commit 3731b4c0ac
3 changed files with 16 additions and 30 deletions

View File

@@ -18,17 +18,13 @@ static int efi_initialized;
void efi_spurious_handler(int vector)
{
struct acrn_vcpu* vcpu;
int ret;
if (get_cpu_id() != 0)
return;
vcpu = per_cpu(vcpu, 0);
if (vcpu != NULL) {
ret = vlapic_set_intr(vcpu, vector, 0);
if (ret != 0)
pr_err("%s vlapic set intr fail, interrupt lost\n",
__func__);
vlapic_set_intr(vcpu, vector, 0);
} else
pr_err("%s vcpu or vlapic is not ready, interrupt lost\n",
__func__);