Re: [PATCH v2 3/4] staging: rtl8192u: remove redundant code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> > ---
> >  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);
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux