diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-06-03 21:35:29 +0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 13:05:45 +0400 |
commit | 50a3485c594d0d52196cde4d208b37cda779fbf3 (patch) | |
tree | 44e359d6418496354fa815749ed4c4126fa23cb8 /drivers/kvm/vmx.c | |
parent | 17c3ba9d37dbda490792a2b52953f09d0dee30d6 (diff) | |
download | linux-50a3485c594d0d52196cde4d208b37cda779fbf3.tar.xz |
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/vmx.c')
-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 4d255493a57e..a534e6fe8184 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 |