From: Alison Schofield <amsfield22@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 4/5] staging: r8723au: move constant to right of comparison test
Date: Mon, 19 Oct 2015 13:45:54 -0700 [thread overview]
Message-ID: <20151019204553.GA23946@Ubuntu-D830> (raw)
In-Reply-To: <alpine.DEB.2.02.1510192206040.2034@localhost6.localdomain6>
On Mon, Oct 19, 2015 at 10:06:21PM +0200, Julia Lawall wrote:
> On Mon, 19 Oct 2015, Alison Schofield wrote:
>
> > Move constant to right of comparison test to improve readability.
>
> Was it intentional to also move it below the comment?
>
> julia
>
This was not intentional and I don't see it as moved in my 'working'
file. It has raised a big red flag that the process I used to create
this patchset is wrong. I'm going to retrace my steps, but if you have
a quick thought on where I screwed up...I'd appreciate it :)
- edited single final with all 5 types of changes.
- used git add -pi to add each hunk and commited each..one at a time
I thought the results would be 5 independent patches, but now I don't
think so!
Thanks for any pointers!
alison
> >
> > checkpatch.pl:
> > WARNING: Comparisons should place the constant on the
> > right side of the test
> >
> > Signed-off-by: Alison Schofield <amsfield22@gmail.com>
> > ---
> > drivers/staging/rtl8723au/core/rtw_cmd.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c b/drivers/staging/rtl8723au/core/rtw_cmd.c
> > index 33164d3..6034428 100644
> > --- a/drivers/staging/rtl8723au/core/rtw_cmd.c
> > +++ b/drivers/staging/rtl8723au/core/rtw_cmd.c
> > @@ -637,13 +637,13 @@ int rtw_disassoc_cmd23a(struct rtw_adapter *padapter, u32 deauth_timeout_ms,
> > init_h2fwcmd_w_parm_no_rsp(cmdobj, param, _DisConnect_CMD_);
> > res = rtw_enqueue_cmd23a(cmdpriv, cmdobj);
> > } else {
> > - if (H2C_SUCCESS != disconnect_hdl23a(padapter, (u8 *)param))
> >
> > /*
> > * no need to enqueue, do the cmd hdl
> > * directly and free cmd parameter
> > */
> >
> > + if (disconnect_hdl23a(padapter, (u8 *)param) != H2C_SUCCESS)
> > res = _FAIL;
> > kfree(param);
> > }
> > --
> > 2.1.4
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To post to this group, send email to outreachy-kernel@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/65c30e146c9e0fe672a78d4cc51ba07dfd9f4f6d.1445282918.git.amsfield22%40gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
next prev parent reply other threads:[~2015-10-19 20:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-19 19:57 [PATCH 0/5] staging: r8723au: fix multiple checkpatch issues Alison Schofield
2015-10-19 19:58 ` [PATCH 1/5] staging: r8723au: break parameter list at separators and align to open braces Alison Schofield
2015-10-19 19:59 ` [PATCH 2/5] staging: r8723au: replace printk() with pr_err() Alison Schofield
2015-10-19 20:09 ` [Outreachy kernel] " Julia Lawall
2015-10-21 5:51 ` Alison Schofield
2015-10-19 20:00 ` [PATCH 3/5] staging: r8723au: use kernel preferred style for block comments Alison Schofield
2015-10-19 20:07 ` [Outreachy kernel] " Julia Lawall
2015-10-20 2:29 ` Alison Schofield
2015-10-20 5:08 ` Julia Lawall
2015-10-19 20:02 ` [PATCH 4/5] staging: r8723au: move constant to right of comparison test Alison Schofield
2015-10-19 20:06 ` [Outreachy kernel] " Julia Lawall
2015-10-19 20:45 ` Alison Schofield [this message]
[not found] ` <20151019203548.GA23803@Ubuntu-D830>
[not found] ` <alpine.DEB.2.02.1510192241110.2034@localhost6.localdomain6>
2015-10-20 2:34 ` Alison Schofield
2015-10-19 20:11 ` [PATCH 5/5] staging: r8723au: add & use local variable to simplify references Alison Schofield
2015-10-21 5:57 ` [PATCH v2 0/5] staging: r8723au: fix multiple checkpatch issues Alison Schofield
2015-10-21 6:01 ` [PATCH v2 1/5] staging: r8723au: break parameter list at separators and align to open braces Alison Schofield
2015-10-25 2:40 ` [Outreachy kernel] " Greg KH
2015-10-26 3:07 ` Alison Schofield
2015-10-27 5:44 ` Greg KH
2015-11-08 21:58 ` Jes Sorensen
2015-10-21 6:06 ` [PATCH v2 2/5] staging: r8723au: replace printk() with netdev_err() Alison Schofield
2015-10-21 6:08 ` [PATCH v2 3/5] staging: r8723au: move constant to right of comparison test Alison Schofield
2015-10-21 6:09 ` [PATCH v2 4/5] staging: r8723au: add & use local variable to simplify references Alison Schofield
2015-10-21 6:10 ` [PATCH v2 5/5] staging: r8723au: use kernel preferred style for commenting Alison Schofield
2015-10-25 2:41 ` [Outreachy kernel] " Greg KH
2015-10-26 3:12 ` Alison Schofield
2015-10-27 5:45 ` Greg KH
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=20151019204553.GA23946@Ubuntu-D830 \
--to=amsfield22@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.