]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wlan-ng: avoid new typedef: p80211_frmrx_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 27 Sep 2016 17:33:52 +0000 (19:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2016 09:32:19 +0000 (11:32 +0200)
This patch fixes the following checkpatch.pl warning in p80211netdev.h:
WARNING: do not add new typedefs

It applies for typedef p80211_frmrx_t

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

index 5055837aa004d7c4c6f42bfbac4e7b2f77d9cf5a..e1a568911b553324b6694ecac731c8479dadac3c 100644 (file)
@@ -98,7 +98,7 @@
 #define P80211_NSDCAP_NOSCAN                0x200 /* nsd can scan */
 
 /* Received frame statistics */
-typedef struct p80211_frmrx_t {
+struct p80211_frmrx {
        u32 mgmt;
        u32 assocreq;
        u32 assocresp;
@@ -132,7 +132,7 @@ typedef struct p80211_frmrx_t {
        u32 data_unknown;
        u32 decrypt;
        u32 decrypt_err;
-} p80211_frmrx_t;
+};
 
 /* called by /proc/net/wireless */
 struct iw_statistics *p80211wext_get_wireless_stats(struct net_device *dev);
@@ -211,7 +211,7 @@ struct wlandevice {
        struct sk_buff_head nsd_rxq;
 
        /* 802.11 device statistics */
-       struct p80211_frmrx_t rx;
+       struct p80211_frmrx rx;
 
        struct iw_statistics wstats;