From: Joe Perches <joe@perches.com>
To: janani-sankarababu <jananis37@gmail.com>, gregkh@linuxfoundation.org
Cc: sergio.paracuellos@gmail.com, davem@davemloft.net,
adrien.descamps@gmail.com, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers:staging:wlan-ng Correct multiple line dereference
Date: Fri, 28 Jul 2017 03:34:24 -0700 [thread overview]
Message-ID: <1501238064.5368.57.camel@perches.com> (raw)
In-Reply-To: <1501236207-27677-1-git-send-email-jananis37@gmail.com>
On Fri, 2017-07-28 at 15:33 +0530, janani-sankarababu wrote:
> This patch fixes multiple line dereference Warning reported by checkpath script. This has been made to simplify the code and make it more readable.
Please wrap your commit messages to 75 characters per line.
And run your suggested patches though checkpatch too.
> diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
[]
> @@ -1345,15 +1345,13 @@ static int hfa384x_usbctlx_complete_sync(struct hfa384x *hw,
> kfree(ctlx);
> } else if (mode == DOWAIT) {
> struct usbctlx_cmd_completor completor;
> + struct usbctlx_completor *cmplt;
> +
> + cmplt = init_cmd_completor(&completor, &ctlx->inbuf.cmdresp,
> + &cmd->result);
>
> result =
> - hfa384x_usbctlx_complete_sync(hw, ctlx,
> - init_cmd_completor(&completor,
> - &ctlx->
> - inbuf.
> - cmdresp,
> - &cmd->
> - result));
> + hfa384x_usbctlx_complete_sync(hw, ctlx, cmplt);
This should now be a single line
result = hfa384x_usbctlx_complete_sync(hw, ctlx, cmplt);
prev parent reply other threads:[~2017-07-28 10:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 10:03 janani-sankarababu
2017-07-28 10:29 ` Dan Carpenter
2017-07-28 10:34 ` Joe Perches [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1501238064.5368.57.camel@perches.com \
--to=joe@perches.com \
--cc=adrien.descamps@gmail.com \
--cc=davem@davemloft.net \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=jananis37@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sergio.paracuellos@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®