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 05:05:45 -0400 |
commit | 50a3485c594d0d52196cde4d208b37cda779fbf3 (patch) | |
tree | 44e359d6418496354fa815749ed4c4126fa23cb8 /drivers/kvm/vmx.c | |
parent | 17c3ba9d37dbda490792a2b52953f09d0dee30d6 (diff) |
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 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, | |||
1932 | }; | 1932 | }; |
1933 | 1933 | ||
1934 | static const int kvm_vmx_max_exit_handlers = | 1934 | static const int kvm_vmx_max_exit_handlers = |
1935 | sizeof(kvm_vmx_exit_handlers) / sizeof(*kvm_vmx_exit_handlers); | 1935 | ARRAY_SIZE(kvm_vmx_exit_handlers); |
1936 | 1936 | ||
1937 | /* | 1937 | /* |
1938 | * The guest has exited. See if we can fix it or if we need userspace | 1938 | * The guest has exited. See if we can fix it or if we need userspace |