mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
broadcom: 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>
This commit is contained in:
parent
60dfc629f8
commit
0db83cd85c
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue