Skip to content

Commit

Permalink
KVM: get rid of kvm_create_vm() unused label warning on s390
Browse files Browse the repository at this point in the history
arch/s390/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_create_vm':
arch/s390/kvm/../../../virt/kvm/kvm_main.c:409: warning: label 'out_err' defined but not used

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Heiko Carstens authored and Marcelo Tosatti committed Dec 27, 2009
1 parent 5279aeb commit b4329db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b4329db

Please sign in to comment.