提交 0db83cd8 编写于 作者: J Jim Cromie 提交者: David S. Miller

broadcom: replace open-coded ARRAY_SIZE with macro

Signed-off-by: NJim Cromie <jim.cromie@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册