staging: wlang-ng: avoid new typedef: hfa384x_usb_rmemresp_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:19:34 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 15:03:53 +0000 (17:03 +0200)
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs

It applies for typedef hfa384x_usb_rmemresp_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/hfa384x_usb.c

index 28c008c..955f22d 100644 (file)
@@ -880,11 +880,11 @@ struct hfa384x_usb_rridresp {
        u8 data[HFA384x_RIDDATA_MAXLEN];
 } __packed;
 
-typedef struct hfa384x_usb_rmemresp {
+struct hfa384x_usb_rmemresp {
        u16 type;
        u16 frmlen;
        u8 data[HFA384x_USB_RWMEM_MAXLEN];
-} __packed hfa384x_usb_rmemresp_t;
+} __packed;
 
 typedef struct hfa384x_usb_bufavail {
        u16 type;
@@ -918,7 +918,7 @@ typedef union hfa384x_usbin {
        struct hfa384x_usb_statusresp wridresp;
        struct hfa384x_usb_rridresp rridresp;
        struct hfa384x_usb_statusresp wmemresp;
-       hfa384x_usb_rmemresp_t rmemresp;
+       struct hfa384x_usb_rmemresp rmemresp;
        hfa384x_usb_bufavail_t bufavail;
        hfa384x_usb_error_t usberror;
        u8 boguspad[3000];
index c21c591..d76ec2a 100644 (file)
@@ -744,7 +744,7 @@ static inline struct usbctlx_completor *init_rrid_completor(
 struct usbctlx_rmem_completor {
        struct usbctlx_completor head;
 
-       const hfa384x_usb_rmemresp_t *rmemresp;
+       const struct hfa384x_usb_rmemresp *rmemresp;
        void *data;
        unsigned int len;
 };
@@ -762,7 +762,7 @@ static int usbctlx_rmem_completor_fn(struct usbctlx_completor *head)
 static inline struct usbctlx_completor *init_rmem_completor(
                                                struct usbctlx_rmem_completor
                                                        *completor,
-                                               hfa384x_usb_rmemresp_t
+                                               struct hfa384x_usb_rmemresp
                                                        *rmemresp,
                                                void *data,
                                                unsigned int len)