Commit 0db83cd8 authored by Jim Cromie's avatar Jim Cromie Committed by David S. Miller

broadcom: replace open-coded ARRAY_SIZE with macro

Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 60dfc629
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment