From: Robert P. J. Day Date: Sun, 3 Jun 2007 17:35:29 +0000 (-0400) Subject: KVM: Replace C code with call to ARRAY_SIZE() macro. X-Git-Tag: v2.6.23-rc1~520^2~34 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=50a3485c594d0d52196cde4d208b37cda779fbf3;p=powerpc.git KVM: Replace C code with call to ARRAY_SIZE() macro. Signed-off-by: Robert P. J. Day Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 4d255493a5..a534e6fe81 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