Skip to content

Commit

Permalink
x86: apic: Convert BUG() to BUG_ON()
Browse files Browse the repository at this point in the history
This was done using Coccinelle's BUG_ON semantic patch.

Signed-off-by: Daniel Walker <dwalker@fifo99.com>
Cc: Julia Lawall <julia@diku.dk>
LKML-Reference: <1252777220-30796-1-git-send-email-dwalker@fifo99.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Daniel Walker authored and Ingo Molnar committed Sep 18, 2009
1 parent bc3eb70 commit c2777f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,8 +1196,7 @@ void __cpuinit setup_local_APIC(void)
* Double-check whether this APIC is really registered.
* This is meaningless in clustered apic mode, so we skip it.
*/
if (!apic->apic_id_registered())
BUG();
BUG_ON(!apic->apic_id_registered());

/*
* Intel recommends to set DFR, LDR and TPR before enabling
Expand Down

0 comments on commit c2777f9

Please sign in to comment.