staging: wlan-ng: Replace data type declaration with variable of same type in cfg80211.c
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 10 Oct 2016 14:02:18 +0000 (16:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:26:20 +0000 (10:26 +0200)
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>
drivers/staging/wlan-ng/cfg80211.c

index 182b2d5..67c48a8 100644 (file)
@@ -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;