Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1536094 > unrolled thread

[PATCH v3] Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.

Started byYan Laijun <yan.laijun@gmail.com>
First post2016-12-05 14:30 +0100
Last post2016-12-05 14:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v3] Staging: wlan-ng: hfa384x_usb.c  Fixed too long code line warnings. Yan Laijun <yan.laijun@gmail.com> - 2016-12-05 14:30 +0100

#1536094 — [PATCH v3] Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.

FromYan Laijun <yan.laijun@gmail.com>
Date2016-12-05 14:30 +0100
Subject[PATCH v3] Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.
Message-ID<sL1vb-55Q-7@gated-at.bofh.it>
Fixed checkpatch warning "line over 80 characters" in
wlan-ng/hfa384x_usb.c file.

Signed-off-by: Yan Laijun <yan.laijun@gmail.com>
---
Changes in v2:
  - Remove initialization of usbin on its decarlation.
---
Changes in v3:
  - Move usbin's assignment to where it's used for the first time.
---
 drivers/staging/wlan-ng/hfa384x_usb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 5f11f6e..4fe037a 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -3037,7 +3037,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
 {
 	struct wlandevice *wlandev = urb->context;
 	struct hfa384x *hw;
-	union hfa384x_usbin *usbin = (union hfa384x_usbin *)urb->transfer_buffer;
+	union hfa384x_usbin *usbin;
 	struct sk_buff *skb = NULL;
 	int result;
 	int urb_status;
@@ -3139,6 +3139,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
 	/* Note: the check of the sw_support field, the type field doesn't
 	 *       have bit 12 set like the docs suggest.
 	 */
+	usbin = (union hfa384x_usbin *)urb->transfer_buffer;
 	type = le16_to_cpu(usbin->type);
 	if (HFA384x_USB_ISRXFRM(type)) {
 		if (action == HANDLE) {
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web