]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wlan-ng: avoid new typedef: p80211item_unk4096_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 25 Sep 2016 13:35:07 +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_unk4096_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 0b18c19d53c1160ab830b731a2614abca5fc1bdd..850d897fc163bf620bfaab280b229d7dc9c99f40 100644 (file)
@@ -246,7 +246,7 @@ struct p80211msg_p2req_ramdl_write {
        u8 devname[WLAN_DEVNAMELEN_MAX];
        struct p80211item_uint32 addr;
        struct p80211item_uint32 len;
-       p80211item_unk4096_t data;
+       struct p80211item_unk4096 data;
        struct p80211item_uint32 resultcode;
 } __packed;
 
@@ -264,7 +264,7 @@ struct p80211msg_p2req_flashdl_write {
        u8 devname[WLAN_DEVNAMELEN_MAX];
        struct p80211item_uint32 addr;
        struct p80211item_uint32 len;
-       p80211item_unk4096_t data;
+       struct p80211item_unk4096 data;
        struct p80211item_uint32 resultcode;
 } __packed;
 
index 921b3762a62c186ae8ab81ba8ae1122c7df0976d..8fc733f1e48d2f69d82e48cf850164ed660f4a86 100644 (file)
@@ -326,12 +326,12 @@ struct p80211item_unk1024 {
 } __packed;
 
 /* message data item for UNK 4096, namely p2 download chunks */
-typedef struct p80211item_unk4096 {
+struct p80211item_unk4096 {
        u32 did;
        u16 status;
        u16 len;
        u8 data[4096];
-} __packed p80211item_unk4096_t;
+} __packed;
 
 struct catlistitem;