staging: wlan-ng: avoid new typedef: p80211item_pstr32_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 25 Sep 2016 13:35:03 +0000 (15:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Sep 2016 17:54:01 +0000 (19:54 +0200)
This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs

It applies for typedef p80211item_pstr32_t

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/cfg80211.c
drivers/staging/wlan-ng/p80211metastruct.h
drivers/staging/wlan-ng/p80211types.h

index 9f05c1724fbed28716ad31639f27909ad00402b4..182b2d56462789bdf3f1c09c0132d3b17e5d19d9 100644 (file)
@@ -86,8 +86,8 @@ static int prism2_domibset_pstr32(struct wlandevice *wlandev,
                                  u32 did, u8 len, const u8 *data)
 {
        struct p80211msg_dot11req_mibset msg;
-       p80211item_pstr32_t *mibitem =
-                       (p80211item_pstr32_t *)&msg.mibattribute.data;
+       struct p80211item_pstr32 *mibitem =
+                       (struct p80211item_pstr32 *)&msg.mibattribute.data;
 
        msg.msgcode = DIDmsg_dot11req_mibset;
        mibitem->did = did;
index c9d4bb5a9b5fbb2d80b215b06b67ca7eb7be9779..c66fc5addbb25cb07be7cfa8db3dc2112ff61681 100644 (file)
@@ -70,7 +70,7 @@ struct p80211msg_dot11req_scan {
        struct p80211item_uint32 bsstype;
        struct p80211item_pstr6 bssid;
        u8 pad_0C[1];
-       p80211item_pstr32_t ssid;
+       struct p80211item_pstr32 ssid;
        u8 pad_1D[3];
        struct p80211item_uint32 scantype;
        struct p80211item_uint32 probedelay;
@@ -93,7 +93,7 @@ struct p80211msg_dot11req_scan_results {
        struct p80211item_uint32 noise;
        struct p80211item_pstr6 bssid;
        u8 pad_3C[1];
-       p80211item_pstr32_t ssid;
+       struct p80211item_pstr32 ssid;
        u8 pad_4D[3];
        struct p80211item_uint32 bsstype;
        struct p80211item_uint32 beaconperiod;
@@ -136,7 +136,7 @@ struct p80211msg_dot11req_start {
        u32 msgcode;
        u32 msglen;
        u8 devname[WLAN_DEVNAMELEN_MAX];
-       p80211item_pstr32_t ssid;
+       struct p80211item_pstr32 ssid;
        u8 pad_12D[3];
        struct p80211item_uint32 bsstype;
        struct p80211item_uint32 beaconperiod;
@@ -217,7 +217,7 @@ struct p80211msg_lnxreq_autojoin {
        u32 msgcode;
        u32 msglen;
        u8 devname[WLAN_DEVNAMELEN_MAX];
-       p80211item_pstr32_t ssid;
+       struct p80211item_pstr32 ssid;
        u8 pad_19D[3];
        struct p80211item_uint32 authtype;
        struct p80211item_uint32 resultcode;
index 4d70d8405c75d36e4b01ae631aa96266c0bbff35..6c877292c209dcfd3a3040a8b88e9c292f786e71 100644 (file)
@@ -294,12 +294,12 @@ struct p80211item_pstr14 {
 } __packed;
 
 /* message data item for OCTETSTR, DISPLAYSTR */
-typedef struct p80211item_pstr32 {
+struct p80211item_pstr32 {
        u32 did;
        u16 status;
        u16 len;
        struct p80211pstr32 data;
-} __packed p80211item_pstr32_t;
+} __packed;
 
 /* message data item for OCTETSTR, DISPLAYSTR */
 typedef struct p80211item_pstr255 {