diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2012-04-10 16:56:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-13 19:15:14 +0200 |
commit | 4133099b3e1ffd63476ede836a5a10aa26fa93d0 (patch) | |
tree | e3c1a691276847bb09c62f08b0cec6ce16dd65ea /drivers/net/ethernet/cisco | |
parent | broadcom: replace open-coded ARRAY_SIZE with macro (diff) | |
download | linux-4133099b3e1ffd63476ede836a5a10aa26fa93d0.tar.xz linux-4133099b3e1ffd63476ede836a5a10aa26fa93d0.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/cisco')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic_pp.c b/drivers/net/ethernet/cisco/enic/enic_pp.c index dafea1ecb7b1..43464f0a4f99 100644 --- a/drivers/net/ethernet/cisco/enic/enic_pp.c +++ b/drivers/net/ethernet/cisco/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) |