Skip to content

Commit eff6991

Browse files
bjoerndwipawel
authored andcommitted
Fix clang error
As we now can build with clang, I did so and ran into an error where clang complained about a potential uninitialized return value. Fix this. Signed-off-by: Bjoern Doebel <bjoern.doebel@gmail.com>
1 parent ba8295f commit eff6991

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/x86/apic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ apic_icr_t apic_icr_read(void) {
9191
}
9292
else if (apic_mode == APIC_MODE_X2APIC)
9393
icr.reg = apic_read(APIC_ICR0);
94+
else
95+
BUG();
9496

9597
return icr;
9698
}

0 commit comments

Comments
 (0)