lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1503059850-16138-1-git-send-email-jananis37@gmail.com>
Date:   Fri, 18 Aug 2017 18:07:30 +0530
From:   Janani S <jananis37@...il.com>
To:     gregkh@...uxfoundation.org
Cc:     sergio.paracuellos@...il.com, davem@...emloft.net,
        adrien.descamps@...il.com, devel@...verdev.osuosl.org,
        linux-kernel@...r.kernel.org, Janani S <jananis37@...il.com>
Subject: [PATCH] [PATCH] staging:wlan-ng Fix Multiple line dereference

This patch fixes multiple line dereference warning reported
by checkpatch script.

Signed-off-by: Janani S <jananis37@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ