staging: wlang-ng: avoid new typedef: hfa384x_AssocStatus_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:19:16 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 15:00:49 +0000 (17:00 +0200)
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs

It applies for typedef hfa384x_AssocStatus_t

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

index 8f8c64d1388d4f87a169726b7428c24a2dccdca6..c8f54938eefa82d3c2f344eb22e0761f67be56f1 100644 (file)
@@ -733,14 +733,14 @@ struct hfa384x_LinkStatus {
 #define HFA384x_ASSOCSTATUS_REASSOC    ((u16)2)
 #define HFA384x_ASSOCSTATUS_AUTHFAIL   ((u16)5)
 
-typedef struct hfa384x_AssocStatus {
+struct hfa384x_AssocStatus {
        u16 assocstatus;
        u8 sta_addr[ETH_ALEN];
        /* old_ap_addr is only valid if assocstatus == 2 */
        u8 old_ap_addr[ETH_ALEN];
        u16 reason;
        u16 reserved;
-} __packed hfa384x_AssocStatus_t;
+} __packed;
 
 /*--  Unsolicited Frame, MAC Mgmt: AuthRequest (AP Only) --*/
 
@@ -768,7 +768,7 @@ typedef union hfa384x_infodata {
        struct hfa384x_ChInfoResult chinforesult;
        struct hfa384x_HScanResult hscanresult;
        struct hfa384x_LinkStatus linkstatus;
-       hfa384x_AssocStatus_t assocstatus;
+       struct hfa384x_AssocStatus assocstatus;
        hfa384x_AuthReq_t authreq;
        hfa384x_PSUserCount_t psusercnt;
        hfa384x_KeyIDChanged_t keyidchanged;
index 7e1c3384c4fa885671b46d5528f6eb6609efdc6b..bc3941c211fcb1d878aa301df74c17336c4e7777 100644 (file)
@@ -1471,7 +1471,7 @@ static void prism2sta_inf_assocstatus(struct wlandevice *wlandev,
                                      hfa384x_InfFrame_t *inf)
 {
        hfa384x_t *hw = wlandev->priv;
-       hfa384x_AssocStatus_t rec;
+       struct hfa384x_AssocStatus rec;
        int i;
 
        memcpy(&rec, &inf->info.assocstatus, sizeof(rec));