netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 05/11] broadcom: replace open-coded ARRAY_SIZE with macro
@ 2012-04-11  0:56 Jim Cromie
  2012-04-13 17:15 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Cromie @ 2012-04-11  0:56 UTC (permalink / raw)
  To: netdev; +Cc: trivial, Jim Cromie


Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
 drivers/net/ethernet/broadcom/bnx2.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c
index 8297e28..0552168 100644
--- 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)
 
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 05/11] broadcom: replace open-coded ARRAY_SIZE with macro
  2012-04-11  0:56 [PATCH 05/11] broadcom: replace open-coded ARRAY_SIZE with macro Jim Cromie
@ 2012-04-13 17:15 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-04-13 17:15 UTC (permalink / raw)
  To: jim.cromie; +Cc: netdev, trivial

From: Jim Cromie <jim.cromie@gmail.com>
Date: Tue, 10 Apr 2012 18:56:03 -0600

> Signed-off-by: Jim Cromie <jim.cromie@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-13 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11  0:56 [PATCH 05/11] broadcom: replace open-coded ARRAY_SIZE with macro Jim Cromie
2012-04-13 17:15 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).