public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: gregkh@linuxfoundation.org, anarey@gmail.com,
	mcgrof@do-not-panic.com, tapaswenipathak@gmail.com,
	joe@perches.com, rmfrfs@gmail.com, yejiayily@gmail.com,
	gdonald@gmail.com, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/4] staging: rtl8192u: remove redundant code
Date: Thu, 1 Jan 2015 10:28:49 +0530	[thread overview]
Message-ID: <20150101045848.GC3645@sudip-PC> (raw)
In-Reply-To: <20150101044956.GB3645@sudip-PC>

On Thu, Jan 01, 2015 at 10:19:56AM +0530, Sudip Mukherjee wrote:
> On Wed, Dec 31, 2014 at 09:10:42PM +0000, Lorenzo Stoakes wrote:
> > This patch fixes warnings/errors raised by checkpatch.pl relating to redundant
> > code in r8192U_dm.c.
> > 
> > Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com>
> > ---
> >  drivers/staging/rtl8192u/r8192U_dm.c | 176 +++++++++++++++++------------------
> >  1 file changed, 84 insertions(+), 92 deletions(-)
> > 
> > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
> > index 862d2ab..ed566bb 100644
> > --- a/drivers/staging/rtl8192u/r8192U_dm.c
> > +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> > @@ -410,9 +410,9 @@ static void dm_check_rate_adaptive(struct net_device *dev)
> > 
> >  			ratr_value = targetRATR;
> >  			RT_TRACE(COMP_RATE, "currentRATR = %x, targetRATR = %x\n", currentRATR, targetRATR);
> > -			if (priv->rf_type == RF_1T2R) {
> > +			if (priv->rf_type == RF_1T2R)
> >  				ratr_value &= ~(RATE_ALL_OFDM_2SS);
> > -			}
> > +
> but this is just removal of unnecessary braces. this is not removal of redundant code.
and, missed writing in the last mail.
your [PATCH v2 2/4] and [PATCH v2 3/4] are same.

thanks
sudip
> 
<snip>
> >  			write_nic_dword(dev, RATR0, ratr_value);
> >  			write_nic_byte(dev, UFWP, 1);

  reply	other threads:[~2015-01-01  4:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-31 21:10 [PATCH v2 1/4] staging: rtl8192u: fix comments Lorenzo Stoakes
2014-12-31 21:10 ` [PATCH v2 2/4] staging: rtl8192u: fix whitespace Lorenzo Stoakes
2014-12-31 21:20   ` Joe Perches
2014-12-31 21:28     ` Lorenzo Stoakes
2014-12-31 21:33   ` [PATCH v3 " Lorenzo Stoakes
2015-01-01  4:47     ` Sudip Mukherjee
2015-01-01  5:40       ` Joe Perches
2015-01-01  6:28         ` Sudip Mukherjee
2015-01-01 10:06           ` Lorenzo Stoakes
2014-12-31 21:10 ` [PATCH v2 3/4] staging: rtl8192u: remove redundant code Lorenzo Stoakes
2015-01-01  4:49   ` Sudip Mukherjee
2015-01-01  4:58     ` Sudip Mukherjee [this message]
2015-01-01 10:12       ` Lorenzo Stoakes
2014-12-31 21:10 ` [PATCH v2 4/4] staging: rtl8192u: Refactor heavy nesting Lorenzo Stoakes
2015-01-10 17:58 ` [PATCH v2 1/4] staging: rtl8192u: fix comments 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=20150101045848.GC3645@sudip-PC \
    --to=sudipm.mukherjee@gmail.com \
    --cc=anarey@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gdonald@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lstoakes@gmail.com \
    --cc=mcgrof@do-not-panic.com \
    --cc=rmfrfs@gmail.com \
    --cc=tapaswenipathak@gmail.com \
    --cc=yejiayily@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