Skip to content

Commit

Permalink
Fix clang error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bjoernd authored and wipawel committed Nov 20, 2020
1 parent ba8295f commit eff6991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ apic_icr_t apic_icr_read(void) {
}
else if (apic_mode == APIC_MODE_X2APIC)
icr.reg = apic_read(APIC_ICR0);
else
BUG();

return icr;
}
Expand Down

0 comments on commit eff6991

Please sign in to comment.