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-Url: https://git.stricted.de/?a=commitdiff_plain;h=50a3485c594d0d52196cde4d208b37cda779fbf3;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 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