KVM: x86: fix bugon.cocci warnings
[linux-2.6-block.git] / arch / x86 / kvm / x86.c
index 661e2bf3852664c63c95b34360712a7bf8674521..41aecc4c52d9958e41b64f4a9bf4b315daa7b474 100644 (file)
@@ -360,8 +360,7 @@ EXPORT_SYMBOL_GPL(kvm_set_apic_base);
 asmlinkage __visible void kvm_spurious_fault(void)
 {
        /* Fault while not rebooting.  We want the trace. */
-       if (!kvm_rebooting)
-               BUG();
+       BUG_ON(!kvm_rebooting);
 }
 EXPORT_SYMBOL_GPL(kvm_spurious_fault);