diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-06-03 13:35:29 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 12:05:45 +0300 |
commit | 50a3485c594d0d52196cde4d208b37cda779fbf3 (patch) | |
tree | 44e359d6418496354fa815749ed4c4126fa23cb8 /drivers/kvm | |
parent | 17c3ba9d37dbda490792a2b52953f09d0dee30d6 (diff) | |
download | linux-3.10-50a3485c594d0d52196cde4d208b37cda779fbf3.tar.gz linux-3.10-50a3485c594d0d52196cde4d208b37cda779fbf3.tar.bz2 linux-3.10-50a3485c594d0d52196cde4d208b37cda779fbf3.zip |
KVM: Replace C code with call to ARRAY_SIZE() macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm')
-rw-r--r-- | drivers/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 4d255493a57..a534e6fe818 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -1932,7 +1932,7 @@ static int (*kvm_vmx_exit_handlers[])(struct kvm_vcpu *vcpu, }; static const int kvm_vmx_max_exit_handlers = - sizeof(kvm_vmx_exit_handlers) / sizeof(*kvm_vmx_exit_handlers); + ARRAY_SIZE(kvm_vmx_exit_handlers); /* * The guest has exited. See if we can fix it or if we need userspace |