From: Jim Cromie Date: Tue, 10 Apr 2012 14:56:09 +0000 (+0000) Subject: enic: replace open-coded ARRAY_SIZE with macro X-Git-Tag: v2.6.39-400.9.0~338^2~32 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=aee9a52f80c3fe5236cc3292525428c90f8fdb4c;p=users%2Fjedix%2Flinux-maple.git enic: replace open-coded ARRAY_SIZE with macro (cherry picked from commit 4133099b3e1ffd63476ede836a5a10aa26fa93d0) Signed-off-by: Jim Cromie Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/enic/enic_pp.c b/drivers/net/enic/enic_pp.c index dafea1ecb7b1..43464f0a4f99 100644 --- a/drivers/net/enic/enic_pp.c +++ b/drivers/net/enic/enic_pp.c @@ -184,7 +184,7 @@ static int (*enic_pp_handlers[])(struct enic *enic, int vf, }; 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, struct enic_port_profile *prev_pp, int *restore_pp)