kvm: remove one useless check extension
authorTiejun Chen <tiejun.chen@intel.com>
Mon, 4 May 2015 02:48:49 +0000 (10:48 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 17 Jun 2015 08:46:28 +0000 (09:46 +0100)
commitea2c6d9745c6698d9f820bc230aa1a80d9e908ac
treefdfc6e325f32cd2277b06555d22dc2478402065d
parent85e84ba31039595995dae80b277378213602891b
kvm: remove one useless check extension

We already check KVM_CAP_IRQFD in generic once enable CONFIG_HAVE_KVM_IRQFD,

kvm_vm_ioctl_check_extension_generic()
    |
    + switch (arg) {
    +   ...
    +   #ifdef CONFIG_HAVE_KVM_IRQFD
    +       case KVM_CAP_IRQFD:
    +   #endif
    +   ...
    +   return 1;
    +   ...
    + }
    |
    + kvm_vm_ioctl_check_extension()

So its not necessary to check this in arch again, and also fix one typo,
s/emlation/emulation.

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c
include/uapi/linux/kvm.h