]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wlang-ng: avoid new typedef: hfa384x_HScanResultSub_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:19:13 +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_HScanResultSub_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/prism2mgmt.c

index 8fee24bc0401cfe065af4e35433c0ce64451f9f5..343debb462557b176f40119fcd5f6b7f03542aa9 100644 (file)
@@ -694,7 +694,7 @@ struct hfa384x_ChInfoResult {
 } __packed;
 
 /*--  Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/
-typedef struct hfa384x_HScanResultSub {
+struct hfa384x_HScanResultSub {
        u16 chid;
        u16 anl;
        u16 sl;
@@ -705,12 +705,12 @@ typedef struct hfa384x_HScanResultSub {
        u8 supprates[10];       /* 802.11 info element */
        u16 proberesp_rate;
        u16 atim;
-} __packed hfa384x_HScanResultSub_t;
+} __packed;
 
 typedef struct hfa384x_HScanResult {
        u16 nresult;
        u16 rsvd;
-       hfa384x_HScanResultSub_t result[HFA384x_HSCANRESULT_MAX];
+       struct hfa384x_HScanResultSub result[HFA384x_HSCANRESULT_MAX];
 } __packed hfa384x_HScanResult_t;
 
 /*--  Unsolicited Frame, MAC Mgmt: LinkStatus --*/
index 1a98d690804f38becd4cae0aa39ce47a19f01a84..1780875170a07e984d14bf2fc12f186c1f26710f 100644 (file)
@@ -371,7 +371,7 @@ int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp)
        int result = 0;
        struct p80211msg_dot11req_scan_results *req;
        hfa384x_t *hw = wlandev->priv;
-       hfa384x_HScanResultSub_t *item = NULL;
+       struct hfa384x_HScanResultSub *item = NULL;
 
        int count;