diff options
author | Daniel Walker <dwalker@fifo99.com> | 2009-09-12 13:40:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-18 07:45:33 -0400 |
commit | c2777f98c205148f1a0d4f9ac03b9cb20b39b2da (patch) | |
tree | 3f6aad6e8f92ef3f3470de59e3a61afd132edf0b /arch/x86/kernel | |
parent | bc3eb7076b2b808f79abd4bd33b6a7feebb6f5d5 (diff) |
x86: apic: Convert BUG() to BUG_ON()
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>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 159740decc41..79e5b92a5800 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -1196,8 +1196,7 @@ void __cpuinit setup_local_APIC(void) | |||
1196 | * Double-check whether this APIC is really registered. | 1196 | * Double-check whether this APIC is really registered. |
1197 | * This is meaningless in clustered apic mode, so we skip it. | 1197 | * This is meaningless in clustered apic mode, so we skip it. |
1198 | */ | 1198 | */ |
1199 | if (!apic->apic_id_registered()) | 1199 | BUG_ON(!apic->apic_id_registered()); |
1200 | BUG(); | ||
1201 | 1200 | ||
1202 | /* | 1201 | /* |
1203 | * Intel recommends to set DFR, LDR and TPR before enabling | 1202 | * Intel recommends to set DFR, LDR and TPR before enabling |