From: Jim Cromie <jim.cromie@gmail.com>
To: netdev@vger.kernel.org
Cc: trivial@vger.kernel.org, Jim Cromie <jim.cromie@gmail.com>
Subject: [PATCH 05/11] broadcom: replace open-coded ARRAY_SIZE with macro
Date: Tue, 10 Apr 2012 18:56:03 -0600 [thread overview]
Message-ID: <1334105763-9198-1-git-send-email-jim.cromie@gmail.com> (raw)
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
next reply other threads:[~2012-04-11 0:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 0:56 Jim Cromie [this message]
2012-04-13 17:15 ` [PATCH 05/11] broadcom: replace open-coded ARRAY_SIZE with macro David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1334105763-9198-1-git-send-email-jim.cromie@gmail.com \
--to=jim.cromie@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=trivial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).