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


Groups > linux.kernel > #1714893 > unrolled thread

[PATCH] [PATCH] staging:wlan-ng Fix Multiple line dereference

Started byJanani S <jananis37@gmail.com>
First post2017-08-18 14:50 +0200
Last post2017-08-18 14:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] [PATCH] staging:wlan-ng Fix Multiple line dereference Janani S <jananis37@gmail.com> - 2017-08-18 14:50 +0200

#1714893 — [PATCH] [PATCH] staging:wlan-ng Fix Multiple line dereference

FromJanani S <jananis37@gmail.com>
Date2017-08-18 14:50 +0200
Subject[PATCH] [PATCH] staging:wlan-ng Fix Multiple line dereference
Message-ID<ufOSR-3M9-13@gated-at.bofh.it>
This patch fixes multiple line dereference warning reported
by checkpatch script.

Signed-off-by: Janani S <jananis37@gmail.com>
---
 drivers/staging/wlan-ng/hfa384x_usb.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index ee5fa86..2746e13 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -1345,15 +1345,11 @@ static int hfa384x_usbctlx_complete_sync(struct hfa384x *hw,
 		kfree(ctlx);
 	} else if (mode == DOWAIT) {
 		struct usbctlx_cmd_completor completor;
+		struct usbctlx_completor *cmplt;
 
-		result =
-		    hfa384x_usbctlx_complete_sync(hw, ctlx,
-						  init_cmd_completor(&completor,
-								     &ctlx->
-								     inbuf.
-								     cmdresp,
-								     &cmd->
-								     result));
+		cmplt = init_cmd_completor(&completor, &ctlx->inbuf.cmdresp,
+					   &cmd->result);
+		result = hfa384x_usbctlx_complete_sync(hw, ctlx, cmplt);
 	}
 
 done:
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web