From: Santha Meena Ramamoorthy <santhameena13@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] staging: rtlwifi: remove condition where it has no effect
Date: Fri, 2 Mar 2018 02:25:34 -0800 [thread overview]
Message-ID: <20180302102533.GA14941@ubuntu> (raw)
In-Reply-To: <alpine.DEB.2.20.1803021111560.2214@hadrien>
On Fri, Mar 02, 2018 at 11:12:17AM +0100, Julia Lawall wrote:
>
>
> On Fri, 2 Mar 2018, Santha Meena Ramamoorthy wrote:
>
> > On Fri, Mar 02, 2018 at 11:03:38AM +0100, Julia Lawall wrote:
> > >
> > >
> > > On Fri, 2 Mar 2018, Santha Meena Ramamoorthy wrote:
> > >
> > > > Remove condition where if and else branch are functionally identical.
> > > > Issue found using cond_no_effect.cocci Coccinelle script.
> > >
> > > Actually, there are just identical, period. It would be good to remove
> > > "functionally".
> > >
> > > Since having such code that is completely duplicated is a little bit
> > > strange, it could be good to enlarge the recipient list to:
> > >
> > > Ping-Ke Shih <pkshih@realtek.com>
> > > (commit_signer:1/1=100%,authored:1/1=100%,added_lines:5225/5225=100%)
> > > Larry Finger <Larry.Finger@lwfinger.net> (commit_signer:1/1=100%)
> > > devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM)
> > >
> > > Maybe someone out there would know if actually some different arguments
> > > were intended.
> > >
> > > julia
> > >
> > Hi,
> >
> > Sure, I will do it now. I guess that should be v2 of the patch.
>
> Yes. Change to the commit message and adding new recipients.
>
> julia
Thank you!
>
> > > >
> > > > Signed-off-by: Santha Meena Ramamoorthy <santhameena13@gmail.com>
> > > > ---
> > > > drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c | 8 ++------
> > > > 1 file changed, 2 insertions(+), 6 deletions(-)
> > > >
> > > > diff --git a/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c b/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c
> > > > index ffff5b0..5b82640 100644
> > > > --- a/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c
> > > > +++ b/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c
> > > > @@ -2885,12 +2885,8 @@ static void halbtc8822b2ant_action_a2dp(struct btc_coexist *btcoexist)
> > > > NORMAL_EXEC, 5);
> > > >
> > > > } else {
> > > > - if (wifi_turbo)
> > > > - halbtc8822b2ant_coex_table_with_type(
> > > > - btcoexist, NORMAL_EXEC, 10);
> > > > - else
> > > > - halbtc8822b2ant_coex_table_with_type(
> > > > - btcoexist, NORMAL_EXEC, 10);
> > > > + halbtc8822b2ant_coex_table_with_type(btcoexist,
> > > > + NORMAL_EXEC, 10);
> > > >
> > > > halbtc8822b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true,
> > > > 109);
> > > > --
> > > > 2.7.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/1519984441-14752-1-git-send-email-santhameena13%40gmail.com.
> > > > For more options, visit https://groups.google.com/d/optout.
> > > >
> >
prev parent reply other threads:[~2018-03-02 10:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-02 9:54 [PATCH] staging: rtlwifi: remove condition where it has no effect Santha Meena Ramamoorthy
2018-03-02 10:03 ` [Outreachy kernel] " Julia Lawall
2018-03-02 10:08 ` Santha Meena Ramamoorthy
2018-03-02 10:12 ` Julia Lawall
2018-03-02 10:25 ` Santha Meena Ramamoorthy [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=20180302102533.GA14941@ubuntu \
--to=santhameena13@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.