mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 19:51:25 -04:00
staging: wlan-ng: Replace data type declaration with variable of same type in cfg80211.c
sizeof(var) instead of sizeof(struct XXX) is preferred. Fix it in cfg80211.c file. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
be704e5832
commit
89e13b4590
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user