Commit 4133099b authored by Jim Cromie's avatar Jim Cromie Committed by David S. Miller

enic: replace open-coded ARRAY_SIZE with macro

Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0db83cd8
...@@ -184,7 +184,7 @@ static int (*enic_pp_handlers[])(struct enic *enic, int vf, ...@@ -184,7 +184,7 @@ static int (*enic_pp_handlers[])(struct enic *enic, int vf,
}; };
static const int enic_pp_handlers_count = static const int enic_pp_handlers_count =
sizeof(enic_pp_handlers)/sizeof(*enic_pp_handlers); ARRAY_SIZE(enic_pp_handlers);
static int enic_pp_preassociate(struct enic *enic, int vf, static int enic_pp_preassociate(struct enic *enic, int vf,
struct enic_port_profile *prev_pp, int *restore_pp) struct enic_port_profile *prev_pp, int *restore_pp)
......
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