summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2016-09-28 20:19:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-02 17:03:53 +0200
commit4012684a5129f750b38726370a855a4a794cc88d (patch)
treefad9b93a554f9dfb3d642bea845b7e3e92ca9161 /drivers/staging/wlan-ng
parentd4734c301c165c03ff7fb04483b456f51a405c0c (diff)
downloadop-kernel-dev-4012684a5129f750b38726370a855a4a794cc88d.zip
op-kernel-dev-4012684a5129f750b38726370a855a4a794cc88d.tar.gz
staging: wlang-ng: avoid new typedef: hfa384x_usbout_t
This patch fixes the following checkpatch.pl warning in hfa384x.h: WARNING: do not add new typedefs It applies for typedef hfa384x_usbout_t Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/hfa384x.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index 58b1ac5..2365edc 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/drivers/staging/wlan-ng/hfa384x.h
@@ -899,7 +899,7 @@ struct hfa384x_usb_error {
/*----------------------------------------------------------*/
/* Unions for packaging all the known packet types together */
-typedef union hfa384x_usbout {
+union hfa384x_usbout {
__le16 type;
struct hfa384x_usb_txfrm txfrm;
struct hfa384x_usb_cmdreq cmdreq;
@@ -907,7 +907,7 @@ typedef union hfa384x_usbout {
struct hfa384x_usb_rridreq rridreq;
struct hfa384x_usb_wmemreq wmemreq;
struct hfa384x_usb_rmemreq rmemreq;
-} __packed hfa384x_usbout_t;
+} __packed;
typedef union hfa384x_usbin {
__le16 type;
@@ -1183,7 +1183,7 @@ typedef struct hfa384x_usbctlx {
struct list_head list;
size_t outbufsize;
- hfa384x_usbout_t outbuf; /* pkt buf for OUT */
+ union hfa384x_usbout outbuf; /* pkt buf for OUT */
hfa384x_usbin_t inbuf; /* pkt buf for IN(a copy) */
CTLX_STATE state; /* Tracks running state */
@@ -1248,7 +1248,7 @@ typedef struct hfa384x {
struct sk_buff *rx_urb_skb;
struct urb tx_urb;
struct urb ctlx_urb;
- hfa384x_usbout_t txbuff;
+ union hfa384x_usbout txbuff;
hfa384x_usbctlxq_t ctlxq;
struct timer_list reqtimer;
struct timer_list resptimer;
OpenPOWER on IntegriCloud