diff mbox

kvm: get rid of unused label warning

Message ID 20091218084143.GA7728@osiris.boeblingen.de.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Heiko Carstens Dec. 18, 2009, 8:41 a.m. UTC
None
diff mbox

Patch

--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -406,8 +406,11 @@  static struct kvm *kvm_create_vm(void)
 out:
 	return kvm;
 
+#if defined(KVM_COALESCED_MMIO_PAGE_OFFSET) || \
+    (defined(CONFIG_MMU_NOTIFIER) && defined(KVM_ARCH_WANT_MMU_NOTIFIER))
 out_err:
 	hardware_disable_all();
+#endif
 out_err_nodisable:
 	kfree(kvm);
 	return ERR_PTR(r);