diff options
author | Nikitas Angelinas <nikitasangelinas@gmail.com> | 2010-09-08 22:04:30 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2010-09-23 14:26:30 -0700 |
commit | 3e6b1b25a92df39d2b619ed3cf74322ddef6800e (patch) | |
tree | 54a2d80f7be61d3d1d0faf2db710faffe646c4ea /arch/ia64 | |
parent | c216488cd1f35c54afbcedf185d5908beb814aef (diff) | |
download | linux-3.10-3e6b1b25a92df39d2b619ed3cf74322ddef6800e.tar.gz linux-3.10-3e6b1b25a92df39d2b619ed3cf74322ddef6800e.tar.bz2 linux-3.10-3e6b1b25a92df39d2b619ed3cf74322ddef6800e.zip |
[IA64] xen: use ARRAY_SIZE macro in xen_pv_ops.c
Replace sizeof(xen_branch_target) / sizeof(xen_branch_target[0]) with
ARRAY_SIZE(xen_branch_target) in arch/ia64/xen/xen_pv_ops.c
Signed-off-by: Nikitas Angelinas <nikitasangelinas@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/xen/xen_pv_ops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64/xen/xen_pv_ops.c index 8adc6a14272..3e8d350fdf3 100644 --- a/arch/ia64/xen/xen_pv_ops.c +++ b/arch/ia64/xen/xen_pv_ops.c @@ -1136,7 +1136,6 @@ __initconst = { static void __init xen_patch_branch(unsigned long tag, unsigned long type) { - const unsigned long nelem = - sizeof(xen_branch_target) / sizeof(xen_branch_target[0]); - __paravirt_patch_apply_branch(tag, type, xen_branch_target, nelem); + __paravirt_patch_apply_branch(tag, type, xen_branch_target, + ARRAY_SIZE(xen_branch_target)); } |