KVM: s390: Removing untriggerable BUG_ONs
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Mon, 10 Mar 2014 14:23:34 +0000 (15:23 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 17 Mar 2014 10:06:45 +0000 (11:06 +0100)
commitfed495d25e0137028c37678a14cd1d8466c02dd3
tree24ecbc821ab62da7ad4965f154e2c6720bcc91d7
parent8fbb1daf3e8254afc17fc4490b69db00920197ae
KVM: s390: Removing untriggerable BUG_ONs

The BUG_ON in kvm-s390.c is unreachable, as we get the vcpu per common code,
which itself does this from the private_data field of the file descriptor,
and there is no KVM_UNCREATE_VCPU.

The __{set,unset}_cpu_idle BUG_ONs are not triggerable because the vcpu
creation code already checks against KVM_MAX_VCPUS.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c