projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60dfc62
)
broadcom: replace open-coded ARRAY_SIZE with macro
author
Jim Cromie
<jim.cromie@gmail.com>
Tue, 10 Apr 2012 14:56:03 +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/broadcom/bnx2.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/broadcom/bnx2.c
b/drivers/net/ethernet/broadcom/bnx2.c
index
36037a6
..
ab55979
100644
(file)
--- a/
drivers/net/ethernet/broadcom/bnx2.c
+++ b/
drivers/net/ethernet/broadcom/bnx2.c
@@
-7343,8
+7343,7
@@
static struct {
{ "rx_fw_discards" },
};
-#define BNX2_NUM_STATS (sizeof(bnx2_stats_str_arr)/\
- sizeof(bnx2_stats_str_arr[0]))
+#define BNX2_NUM_STATS ARRAY_SIZE(bnx2_stats_str_arr)
#define STATS_OFFSET32(offset_name) (offsetof(struct statistics_block, offset_name) / 4)