From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
To: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/5] staging: wlan-ng: Replace data type declaration with variable of same type in cfg80211.c
Date: Mon, 10 Oct 2016 16:02:18 +0200 [thread overview]
Message-ID: <1476108142-27623-2-git-send-email-sergio.paracuellos@gmail.com> (raw)
In-Reply-To: <1476108142-27623-1-git-send-email-sergio.paracuellos@gmail.com>
sizeof(var) instead of sizeof(struct XXX) is preferred.
Fix it in cfg80211.c file.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
drivers/staging/wlan-ng/cfg80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 182b2d5..67c48a8 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -323,7 +323,7 @@ static int prism2_scan(struct wiphy *wiphy,
priv->scan_request = request;
- memset(&msg1, 0x00, sizeof(struct p80211msg_dot11req_scan));
+ memset(&msg1, 0x00, sizeof(msg1));
msg1.msgcode = DIDmsg_dot11req_scan;
msg1.bsstype.data = P80211ENUM_bsstype_any;
--
1.9.1
next prev parent reply other threads:[~2016-10-10 14:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-10 14:02 [PATCH 0/5] Replace data type declarations with variables of same types in several source files Sergio Paracuellos
2016-10-10 14:02 ` Sergio Paracuellos [this message]
2016-10-10 14:02 ` [PATCH 2/5] staging: wlan-ng: Replace data type declaration with variable of same type in hfa384x_usb.c Sergio Paracuellos
2016-10-10 14:02 ` [PATCH 3/5] staging: wlan-ng: Replace data type declaration with variable of same type in p80211conv.c Sergio Paracuellos
2016-10-10 14:02 ` [PATCH 4/5] staging: wlan-ng: Replace data type declaration with variable of same type in p80211netdev.c Sergio Paracuellos
2016-10-10 14:02 ` [PATCH 5/5] staging: wlan-ng: Replace data type declaration with variable of same type in prism2sta.c Sergio Paracuellos
2016-10-16 8:24 ` [PATCH 0/5] Replace data type declarations with variables of same types in several source files Alexander Alemayhu
2016-10-16 18:54 ` Sergio Paracuellos
2016-10-19 15:52 [PATCH 00/12] Avoid CamelCases in hfa384x.h Sergio Paracuellos
2016-10-19 15:52 ` [PATCH 1/5] staging: wlan-ng: Replace data type declaration with variable of same type in cfg80211.c Sergio Paracuellos
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=1476108142-27623-2-git-send-email-sergio.paracuellos@gmail.com \
--to=sergio.paracuellos@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®