mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-13 12:59:45 +00:00
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:
@@ -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__);
|
||||
|
Reference in New Issue
Block a user