From: Johannes Berg <johannes@sipsolutions.net>
To: Jiri Benc <jbenc@suse.cz>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH] mac80211: use ARRAY_SIZE
Date: Tue, 27 Mar 2007 17:59:26 +0200 [thread overview]
Message-ID: <1175011166.9282.0.camel@johannes.berg> (raw)
This patch converts all applicable instances of
sizeof(array)/sizeof(member) that I found to ARRAY_SIZE.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/ieee80211_ioctl.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--- wireless-dev.orig/net/mac80211/ieee80211_ioctl.c 2007-03-27 16:33:30.893155480 +0200
+++ wireless-dev/net/mac80211/ieee80211_ioctl.c 2007-03-27 16:33:44.363155480 +0200
@@ -3273,11 +3273,9 @@ static const iw_handler ieee80211_privat
const struct iw_handler_def ieee80211_iw_handler_def =
{
- .num_standard = sizeof(ieee80211_handler) / sizeof(iw_handler),
- .num_private = sizeof(ieee80211_private_handler) /
- sizeof(iw_handler),
- .num_private_args = sizeof(ieee80211_ioctl_priv) /
- sizeof(struct iw_priv_args),
+ .num_standard = ARRAY_SIZE(ieee80211_handler),
+ .num_private = ARRAY_SIZE(ieee80211_private_handler),
+ .num_private_args = ARRAY_SIZE(ieee80211_ioctl_priv),
.standard = (iw_handler *) ieee80211_handler,
.private = (iw_handler *) ieee80211_private_handler,
.private_args = (struct iw_priv_args *) ieee80211_ioctl_priv,
reply other threads:[~2007-03-28 9:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1175011166.9282.0.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=jbenc@suse.cz \
--cc=linux-wireless@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