staging: wlan-ng: avoid new typedef: p80211item_pstr14_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 25 Sep 2016 13:35:02 +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_pstr14_t

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

index 97ef2ef35f084ce0e5b6b41a3368a83697eede41..c9d4bb5a9b5fbb2d80b215b06b67ca7eb7be9779 100644 (file)
@@ -74,7 +74,7 @@ struct p80211msg_dot11req_scan {
        u8 pad_1D[3];
        struct p80211item_uint32 scantype;
        struct p80211item_uint32 probedelay;
-       p80211item_pstr14_t channellist;
+       struct p80211item_pstr14 channellist;
        u8 pad_2C[1];
        struct p80211item_uint32 minchanneltime;
        struct p80211item_uint32 maxchanneltime;
index 9a09cce018be139b743f35d6968de3e1ae684224..4d70d8405c75d36e4b01ae631aa96266c0bbff35 100644 (file)
@@ -286,12 +286,12 @@ struct p80211item_pstr6 {
 } __packed;
 
 /* message data item for OCTETSTR, DISPLAYSTR */
-typedef struct p80211item_pstr14 {
+struct p80211item_pstr14 {
        u32 did;
        u16 status;
        u16 len;
        struct p80211pstr14 data;
-} __packed p80211item_pstr14_t;
+} __packed;
 
 /* message data item for OCTETSTR, DISPLAYSTR */
 typedef struct p80211item_pstr32 {