enic: replace open-coded ARRAY_SIZE with macro

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jim Cromie 2012-04-10 14:56:09 +00:00 committed by David S. Miller
parent 0db83cd85c
commit 4133099b3e
1 changed files with 1 additions and 1 deletions

View File

@ -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)