diff options
author | Tiejun Chen <tiejun.chen@intel.com> | 2015-05-03 22:48:49 -0400 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-06-17 04:46:28 -0400 |
commit | ea2c6d9745c6698d9f820bc230aa1a80d9e908ac (patch) | |
tree | fdfc6e325f32cd2277b06555d22dc2478402065d /arch/arm/kvm | |
parent | 85e84ba31039595995dae80b277378213602891b (diff) |
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>
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r-- | arch/arm/kvm/arm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index e41cb11f71b2..7e8233015ad8 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c | |||
@@ -171,7 +171,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) | |||
171 | int r; | 171 | int r; |
172 | switch (ext) { | 172 | switch (ext) { |
173 | case KVM_CAP_IRQCHIP: | 173 | case KVM_CAP_IRQCHIP: |
174 | case KVM_CAP_IRQFD: | ||
175 | case KVM_CAP_IOEVENTFD: | 174 | case KVM_CAP_IOEVENTFD: |
176 | case KVM_CAP_DEVICE_CTRL: | 175 | case KVM_CAP_DEVICE_CTRL: |
177 | case KVM_CAP_USER_MEMORY: | 176 | case KVM_CAP_USER_MEMORY: |