Skip to content

Commit

Permalink
KVM: Replace C code with call to ARRAY_SIZE() macro.
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Robert P. J. Day authored and Avi Kivity committed Jul 16, 2007
1 parent 17c3ba9 commit 50a3485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50a3485

Please sign in to comment.