]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wlang-ng: avoid new typedef: hfa384x_HostScanRequest_data_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:18:58 +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_HostScanRequest_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/prism2mgmt.c

index e02f8948d5539afb77d94d84e685152a084aa35f..2ac10a09f867b77dea934ddd3f12c6b5a972ace3 100644 (file)
@@ -408,11 +408,11 @@ struct hfa384x_caplevel {
 #define HFA384x_CREATEIBSS_JOINCREATEIBSS          0
 
 /*-- Configuration Record: HostScanRequest (data portion only) --*/
-typedef struct hfa384x_HostScanRequest_data {
+struct hfa384x_HostScanRequest_data {
        u16 channelList;
        u16 txRate;
        struct hfa384x_bytestr32 ssid;
-} __packed hfa384x_HostScanRequest_data_t;
+} __packed;
 
 /*-- Configuration Record: JoinRequest (data portion only) --*/
 typedef struct hfa384x_JoinRequest_data {
index 5e5d0ab1ceeeed06c25c1104be929814e04f8e8f..1a98d690804f38becd4cae0aa39ce47a19f01a84 100644 (file)
@@ -122,7 +122,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
        int i, timeout;
        int istmpenable = 0;
 
-       hfa384x_HostScanRequest_data_t scanreq;
+       struct hfa384x_HostScanRequest_data scanreq;
 
        /* gatekeeper check */
        if (HFA384x_FIRMWARE_VERSION(hw->ident_sta_fw.major,
@@ -292,7 +292,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
 
        result = hfa384x_drvr_setconfig(hw,
                                        HFA384x_RID_HOSTSCAN, &scanreq,
-                                       sizeof(hfa384x_HostScanRequest_data_t));
+                                       sizeof(struct hfa384x_HostScanRequest_data));
        if (result) {
                netdev_err(wlandev->netdev,
                           "setconfig(SCANREQUEST) failed. result=%d\n",