From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933871AbcI1Qjt (ORCPT ); Wed, 28 Sep 2016 12:39:49 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36859 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933357AbcI1QaJ (ORCPT ); Wed, 28 Sep 2016 12:30:09 -0400 From: Sergio Paracuellos To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 44/87] staging: wlang-ng: avoid new typedef: hfa384x_usbout_t Date: Wed, 28 Sep 2016 18:28:26 +0200 Message-Id: <1475080149-16658-45-git-send-email-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475080149-16658-1-git-send-email-sergio.paracuellos@gmail.com> References: <1475080149-16658-1-git-send-email-sergio.paracuellos@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 8 ++++---- 1 file 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 @@ struct hfa384x_usb_error { 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 void (*ctlx_usercb_t) (struct hfa384x *hw, 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 @@ struct prism2sta_accesslist { 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; -- 1.9.1