Commit 3e6b1b25 authored by Nikitas Angelinas's avatar Nikitas Angelinas Committed by Tony Luck

[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: default avatarNikitas Angelinas <nikitasangelinas@gmail.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent c216488c
...@@ -1136,7 +1136,6 @@ __initconst = { ...@@ -1136,7 +1136,6 @@ __initconst = {
static void __init static void __init
xen_patch_branch(unsigned long tag, unsigned long type) xen_patch_branch(unsigned long tag, unsigned long type)
{ {
const unsigned long nelem = __paravirt_patch_apply_branch(tag, type, xen_branch_target,
sizeof(xen_branch_target) / sizeof(xen_branch_target[0]); ARRAY_SIZE(xen_branch_target));
__paravirt_patch_apply_branch(tag, type, xen_branch_target, nelem);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment