diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-06-03 19:35:29 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 11:05:45 +0200 |
commit | 50a3485c594d0d52196cde4d208b37cda779fbf3 (patch) | |
tree | 44e359d6418496354fa815749ed4c4126fa23cb8 /drivers/kvm | |
parent | KVM: Lazy guest cr3 switching (diff) | |
download | linux-50a3485c594d0d52196cde4d208b37cda779fbf3.tar.xz linux-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 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 |