Skip to content

Commit

Permalink
enic: replace open-coded ARRAY_SIZE with macro
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jim Cromie authored and David S. Miller committed Apr 13, 2012
1 parent 0db83cd commit 4133099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/cisco/enic/enic_pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4133099

Please sign in to comment.