Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

broadcom: replace open-coded ARRAY_SIZE with macro

parent 60dfc629
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -7343,8 +7343,7 @@ static struct {
	{ "rx_fw_discards" },
	{ "rx_fw_discards" },
};
};


#define BNX2_NUM_STATS (sizeof(bnx2_stats_str_arr)/\
#define BNX2_NUM_STATS ARRAY_SIZE(bnx2_stats_str_arr)
			sizeof(bnx2_stats_str_arr[0]))


#define STATS_OFFSET32(offset_name) (offsetof(struct statistics_block, offset_name) / 4)
#define STATS_OFFSET32(offset_name) (offsetof(struct statistics_block, offset_name) / 4)