staging: wlang-ng: avoid new typedef: hfa384x_ScanResult_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:19:10 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 15:00:48 +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_ScanResult_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 97a796e4c28f9c6cbd19be4a0d64eccb59cb55e9..1da5a673d1f56493de00098a51eecba6027c6ea8 100644 (file)
@@ -671,11 +671,11 @@ struct hfa384x_ScanResultSub {
        u16 proberesp_rate;
 } __packed;
 
-typedef struct hfa384x_ScanResult {
+struct hfa384x_ScanResult {
        u16 rsvd;
        u16 scanreason;
        struct hfa384x_ScanResultSub result[HFA384x_SCANRESULT_MAX];
-} __packed hfa384x_ScanResult_t;
+} __packed;
 
 /*--  Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/
 typedef struct hfa384x_ChInfoResultSub {
@@ -764,7 +764,7 @@ typedef struct hfa384x_KeyIDChanged {
 typedef union hfa384x_infodata {
        struct hfa384x_CommTallies16 commtallies16;
        struct hfa384x_CommTallies32 commtallies32;
-       hfa384x_ScanResult_t scanresult;
+       struct hfa384x_ScanResult scanresult;
        hfa384x_ChInfoResult_t chinforesult;
        hfa384x_HScanResult_t hscanresult;
        hfa384x_LinkStatus_t linkstatus;
index 8cf81c6a6388eeff11f0136f59674ad912e1cd71..dfb7a73053f6913fba840f0f801fc2a315c76681 100644 (file)
@@ -1035,7 +1035,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev,
 {
        hfa384x_t *hw = wlandev->priv;
        int nbss;
-       hfa384x_ScanResult_t *sr = &(inf->info.scanresult);
+       struct hfa384x_ScanResult *sr = &(inf->info.scanresult);
        int i;
        struct hfa384x_JoinRequest_data joinreq;
        int result;