Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753318AbdHTSKv (ORCPT ); Sun, 20 Aug 2017 14:10:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51968 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753176AbdHTSKu (ORCPT ); Sun, 20 Aug 2017 14:10:50 -0400 Date: Sun, 20 Aug 2017 11:10:53 -0700 From: Greg KH To: Janani S Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, adrien.descamps@gmail.com, sergio.paracuellos@gmail.com, davem@davemloft.net Subject: Re: [PATCH] staging:wlan-ng Fix Multiple line dereference Message-ID: <20170820181053.GA17478@kroah.com> References: <1503060399-16486-1-git-send-email-jananis37@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1503060399-16486-1-git-send-email-jananis37@gmail.com> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1229 Lines: 37 On Fri, Aug 18, 2017 at 06:16:39PM +0530, Janani S wrote: > This patch fixes multiple line dereference warning reported > by checkpatch script. > > Signed-off-by: Janani S > --- > 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: Someone else sent this same patch right before you did, sorry. greg k-h