]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: prefer IS_ENABLED to a static variable
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Mar 2015 11:26:06 +0000 (12:26 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 11 Mar 2015 14:27:55 +0000 (15:27 +0100)
commitcf205e7f26157f1ecaa1dc95b883476927cfcbd5
treeecd6f15b868c9844e1b75656b0f601f4304ad98d
parent5804e39bdd773d477bbcce65e6b207c04b339c99
KVM: arm/arm64: prefer IS_ENABLED to a static variable

IS_ENABLED gives compile-time checking and keeps the code clearer.

The one exception is inside kvm_vm_ioctl_check_extension, where
the established idiom is to wrap the case labels with an #ifdef.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm/kvm/arm.c