]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wlang-ng: avoid new typedef: hfa384x_JoinRequest_data_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:18:59 +0000 (20:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 14:59:59 +0000 (16:59 +0200)
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs

It applies for typedef hfa384x_JoinRequest_data_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 2ac10a09f867b77dea934ddd3f12c6b5a972ace3..46487da4a93699afc44180bdc8920b20e951ddc4 100644 (file)
 #define                HFA384x_RID_DBMCOMMSQUALITY_LEN  \
        ((u16)sizeof(hfa384x_dbmcommsquality_t))
 #define                HFA384x_RID_JOINREQUEST_LEN \
-       ((u16)sizeof(hfa384x_JoinRequest_data_t))
+       ((u16)sizeof(struct hfa384x_JoinRequest_data))
 
 /*--------------------------------------------------------------------
  * Information RIDs:  Modem Information
@@ -415,10 +415,10 @@ struct hfa384x_HostScanRequest_data {
 } __packed;
 
 /*-- Configuration Record: JoinRequest (data portion only) --*/
-typedef struct hfa384x_JoinRequest_data {
+struct hfa384x_JoinRequest_data {
        u8 bssid[WLAN_BSSID_LEN];
        u16 channel;
-} __packed hfa384x_JoinRequest_data_t;
+} __packed;
 
 /*-- Configuration Record: authenticateStation (data portion only) --*/
 typedef struct hfa384x_authenticateStation_data {
@@ -1298,7 +1298,7 @@ typedef struct hfa384x {
        int scanflag;           /* to signal scan complete */
        int join_ap;            /* are we joined to a specific ap */
        int join_retries;       /* number of join retries till we fail */
-       hfa384x_JoinRequest_data_t joinreq;     /* join request saved data */
+       struct hfa384x_JoinRequest_data joinreq;        /* join request saved data */
 
        struct wlandevice *wlandev;
        /* Timer to allow for the deferred processing of linkstatus messages */
index 850cbbc9159c1a6f3ee97b2a35ee4a12b0f839e2..461eedf2c2885018e1044c455d2a1e2757e630b9 100644 (file)
@@ -1037,7 +1037,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev,
        int nbss;
        hfa384x_ScanResult_t *sr = &(inf->info.scanresult);
        int i;
-       hfa384x_JoinRequest_data_t joinreq;
+       struct hfa384x_JoinRequest_data joinreq;
        int result;
 
        /* Get the number of results, first in bytes, then in results */
@@ -1391,7 +1391,7 @@ void prism2sta_processing_defer(struct work_struct *data)
                 * Disable Transmits, Ignore receives of data frames
                 */
                if (hw->join_ap && --hw->join_retries > 0) {
-                       hfa384x_JoinRequest_data_t joinreq;
+                       struct hfa384x_JoinRequest_data joinreq;
 
                        joinreq = hw->joinreq;
                        /* Send the join request */