From: Daniel Walker Date: Sat, 12 Sep 2009 17:40:20 +0000 (-0700) Subject: x86: apic: Convert BUG() to BUG_ON() X-Git-Tag: MMI-PSA29.97-13-9~26889^2~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c2777f98c205148f1a0d4f9ac03b9cb20b39b2da;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git x86: apic: Convert BUG() to BUG_ON() This was done using Coccinelle's BUG_ON semantic patch. Signed-off-by: Daniel Walker Cc: Julia Lawall LKML-Reference: <1252777220-30796-1-git-send-email-dwalker@fifo99.com> Signed-off-by: Ingo Molnar --- 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) * 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