From: Colin Vidal <colin@cvidal.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "open list:STAGING SUBSYSTEM" <devel@driverdev.osuosl.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 5/5] Staging: rtl8188eu/core: make core more readable
Date: Mon, 15 Feb 2016 17:26:59 +0100 [thread overview]
Message-ID: <1455553619.3091.9.camel@cvidal.org> (raw)
In-Reply-To: <20160215003949.GA1276@kroah.com>
On Sun, 2016-02-14 at 16:39 -0800, Greg Kroah-Hartman wrote:
> On Fri, Feb 12, 2016 at 07:05:53PM +0100, Colin Vidal wrote:
> > Signed-off-by: Colin Vidal <colin@cvidal.org>
> > ---
> > drivers/staging/rtl8188eu/core/rtw_iol.c | 10 +++-------
> > 1 file changed, 3 insertions(+), 7 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8188eu/core/rtw_iol.c
> > b/drivers/staging/rtl8188eu/core/rtw_iol.c
> > index 2e2145c..ba6c492 100644
> > --- a/drivers/staging/rtl8188eu/core/rtw_iol.c
> > +++ b/drivers/staging/rtl8188eu/core/rtw_iol.c
> > @@ -18,11 +18,7 @@
> >
> > bool rtw_IOL_applied(struct adapter *adapter)
> > {
> > - if (adapter->registrypriv.fw_iol == 1)
> > - return true;
> > -
> > - if ((adapter->registrypriv.fw_iol == 2) &&
> > - (!adapter_to_dvobj(adapter)->ishighspeed))
> > - return true;
> > - return false;
> > + return adapter->registrypriv.fw_iol == 1 ||
> > + (adapter->registrypriv.fw_iol == 2 &&
> > + !adapter_to_dvobj(adapter)->ishighspeed);
> > }
>
> I'm sorry, but this patch does not do what you said it does, it's
> much
> harder to read now :(
>
> Also, I can't take a patch without a changelog text :(
>
> thanks,
>
> greg k-h
Hi Greg,
Thanks for you replie!
OK, I thought it was a better idea (as suggests Joe Perches) to group
the test in a way to avoid multiples - and maybe confusing - returns.
So, I'll remove this one.
Sorry about the changelot, I missed it while making patch series, I'll
resend it.
Thanks,
Colin
next prev parent reply other threads:[~2016-02-15 16:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 18:05 [PATCH v3 1/5] Staging: rtl8188eu/core: remove paragraph which mention FSF address in comment header Colin Vidal
2016-02-12 18:05 ` [PATCH v3 2/5] Staging: rtl8188eu/core: Coding style fix, set conform spaces between identifiers Colin Vidal
2016-02-12 18:05 ` [PATCH v3 3/5] Staging: rtl8188eu/core: Coding style fix, set constant operand on right in tests Colin Vidal
2016-02-12 18:05 ` [PATCH v3 4/5] Staging: rtl8188eu/core: Coding style fix, avoid line over 80 characters Colin Vidal
2016-02-12 18:05 ` [PATCH v3 5/5] Staging: rtl8188eu/core: make core more readable Colin Vidal
2016-02-15 0:39 ` Greg Kroah-Hartman
2016-02-15 16:26 ` Colin Vidal [this message]
2016-02-15 0:40 ` [PATCH v3 1/5] Staging: rtl8188eu/core: remove paragraph which mention FSF address in comment header Greg Kroah-Hartman
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=1455553619.3091.9.camel@cvidal.org \
--to=colin@cvidal.org \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/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