projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db83cd
)
enic: replace open-coded ARRAY_SIZE with macro
author
Jim Cromie
<jim.cromie@gmail.com>
Tue, 10 Apr 2012 14:56:09 +0000
(14:56 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 13 Apr 2012 17:15:14 +0000
(13:15 -0400)
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_pp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cisco/enic/enic_pp.c
b/drivers/net/ethernet/cisco/enic/enic_pp.c
index dafea1ecb7b1cf03db3f26182f6a8b199fa3c338..43464f0a4f99c14b08a0fb26c75ffa25ae5b0f1d 100644
(file)
--- 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)