staging: wlang-ng: avoid new typedef: hfa384x_ChInfoResultSub_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:19:11 +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_ChInfoResultSub_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 1da5a673d1f56493de00098a51eecba6027c6ea8..beb97d9d766d28fbe8df5b14279da05e3183c451 100644 (file)
@@ -678,19 +678,19 @@ struct hfa384x_ScanResult {
 } __packed;
 
 /*--  Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/
-typedef struct hfa384x_ChInfoResultSub {
+struct hfa384x_ChInfoResultSub {
        u16 chid;
        u16 anl;
        u16 pnl;
        u16 active;
-} __packed hfa384x_ChInfoResultSub_t;
+} __packed;
 
 #define HFA384x_CHINFORESULT_BSSACTIVE BIT(0)
 #define HFA384x_CHINFORESULT_PCFACTIVE BIT(1)
 
 typedef struct hfa384x_ChInfoResult {
        u16 scanchannels;
-       hfa384x_ChInfoResultSub_t result[HFA384x_CHINFORESULT_MAX];
+       struct hfa384x_ChInfoResultSub result[HFA384x_CHINFORESULT_MAX];
 } __packed hfa384x_ChInfoResult_t;
 
 /*--  Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/
index dfb7a73053f6913fba840f0f801fc2a315c76681..7e1c3384c4fa885671b46d5528f6eb6609efdc6b 100644 (file)
@@ -1136,8 +1136,8 @@ static void prism2sta_inf_chinforesults(struct wlandevice *wlandev,
            le16_to_cpu(inf->info.chinforesult.scanchannels);
 
        for (i = 0, n = 0; i < HFA384x_CHINFORESULT_MAX; i++) {
-               hfa384x_ChInfoResultSub_t *result;
-               hfa384x_ChInfoResultSub_t *chinforesult;
+               struct hfa384x_ChInfoResultSub *result;
+               struct hfa384x_ChInfoResultSub *chinforesult;
                int chan;
 
                if (!(hw->channel_info.results.scanchannels & (1 << i)))