Skip to content

Commit 2f3953a

Browse files
Shawnshhlijinxia
authored andcommitted
fix "warning:ISO C forbids 'return' with expression,in function returning void"
returning void function must return void. Signed-off-by: huihuang.shi <huihuang.shi@intel.com>
1 parent 0b7af5b commit 2f3953a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hypervisor/arch/x86/guest/vlapic.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,10 @@ vlapic_intr_accepted(struct vlapic *vlapic, int vector)
11121112
struct lapic_reg *irrptr, *isrptr;
11131113
int idx, stk_top;
11141114

1115-
if (vlapic->ops.apicv_intr_accepted)
1116-
return (*vlapic->ops.apicv_intr_accepted)(vlapic, vector);
1115+
if (vlapic->ops.apicv_intr_accepted) {
1116+
(*vlapic->ops.apicv_intr_accepted)(vlapic, vector);
1117+
return;
1118+
}
11171119

11181120
/*
11191121
* clear the ready bit for vector being accepted in irr

0 commit comments

Comments
 (0)