]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging: wlang-ng: avoid new typedef: hfa384x_authenticateStation_data_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:19:00 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 15:00:47 +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_authenticateStation_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 46487da4a93699afc44180bdc8920b20e951ddc4..385a3325162d5873003544ef343858ebba70cb68 100644 (file)
@@ -421,11 +421,11 @@ struct hfa384x_JoinRequest_data {
 } __packed;
 
 /*-- Configuration Record: authenticateStation (data portion only) --*/
-typedef struct hfa384x_authenticateStation_data {
+struct hfa384x_authenticateStation_data {
        u8 address[ETH_ALEN];
        u16 status;
        u16 algorithm;
-} __packed hfa384x_authenticateStation_data_t;
+} __packed;
 
 /*-- Configuration Record: WPAData       (data portion only) --*/
 typedef struct hfa384x_WPAData {
index 461eedf2c2885018e1044c455d2a1e2757e630b9..0b09c05378b50b914c63a301bc15dc9ab09fa371 100644 (file)
@@ -1547,7 +1547,7 @@ static void prism2sta_inf_authreq_defer(struct wlandevice *wlandev,
                                        hfa384x_InfFrame_t *inf)
 {
        hfa384x_t *hw = wlandev->priv;
-       hfa384x_authenticateStation_data_t rec;
+       struct hfa384x_authenticateStation_data rec;
 
        int i, added, result, cnt;
        u8 *addr;