public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Axel Rasmussen <axel.rasmussen1@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/9] drivers: staging: rtl8187se: wrap excessively long lines
Date: Mon, 3 Mar 2014 12:02:27 +0300	[thread overview]
Message-ID: <20140303090207.GJ26722@mwanda> (raw)
In-Reply-To: <1393737773-13937-5-git-send-email-axel.rasmussen1@gmail.com>

On Sat, Mar 01, 2014 at 10:22:48PM -0700, Axel Rasmussen wrote:
> Signed-off-by: Axel Rasmussen <axel.rasmussen1@gmail.com>
> ---
>  drivers/staging/rtl8187se/r8180_core.c | 73 ++++++++++++++++++++--------------
>  1 file changed, 44 insertions(+), 29 deletions(-)
> 
> diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c
> index b6c8c00..cd22ba3 100644
> --- a/drivers/staging/rtl8187se/r8180_core.c
> +++ b/drivers/staging/rtl8187se/r8180_core.c
> @@ -1021,7 +1021,8 @@ inline u16 ieeerate2rtlrate(int rate)
>  	}
>  }
>  
> -static u16 rtl_rate[] = {10, 20, 55, 110, 60, 90, 120, 180, 240, 360, 480, 540, 720};
> +static u16 rtl_rate[] = {10, 20, 55, 110, 60,
> +	90, 120, 180, 240, 360, 480, 540, 720};
>  
>  inline u16 rtl8180_rate2rate(short rate)
>  {
> @@ -1236,7 +1237,8 @@ static void rtl8180_rx(struct net_device *dev)
>  		tmp = priv->rxringtail;
>  		do {
>  			if (tmp == priv->rxring)
> -				tmp  = priv->rxring + (priv->rxringcount - 1)*rx_desc_size;
> +				tmp  = priv->rxring + (priv->rxringcount - 1) *
> +					rx_desc_size;
>  			else
>  				tmp -= rx_desc_size;
>  
> @@ -1322,21 +1324,26 @@ static void rtl8180_rx(struct net_device *dev)
>  			priv->rx_skb_complete = 1;
>  		}
>  
> -		signal = (unsigned char)(((*(priv->rxringtail+3)) & (0x00ff0000))>>16);
> +		signal = (unsigned char)(*(priv->rxringtail + 3) &
> +			0x00ff0000) >> 16;

Nope.  This introduces a bug.

I have not reviewed any further into this patch.

regards,
dan carpenter

  reply	other threads:[~2014-03-03  9:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-02  5:22 [PATCH 0/9] drivers: staging: rtl8187se: various code cleanups Axel Rasmussen
2014-03-02  5:22 ` [PATCH 1/9] drivers: staging: rtl8187se: use netdev_* instead of prink Axel Rasmussen
2014-03-02  5:22 ` [PATCH 2/9] drivers: staging: rtl8187se: refactor/clean signal smoothing Axel Rasmussen
2014-03-02  5:22 ` [PATCH 3/9] drivers: staging: rtl8187se: wrap excessively long lines Axel Rasmussen
2014-03-03  8:58   ` Dan Carpenter
2014-03-02  5:22 ` [PATCH 4/9] " Axel Rasmussen
2014-03-03  9:02   ` Dan Carpenter [this message]
2014-03-02  5:22 ` [PATCH 5/9] " Axel Rasmussen
2014-03-02  5:22 ` [PATCH 6/9] drivers: staging: rtl8187se: fixed broken indentation Axel Rasmussen
2014-03-02  5:22 ` [PATCH 7/9] drivers: staging: rtl8187se: fixed checkpatch.pl errors Axel Rasmussen
2014-03-02  5:36   ` Joe Perches
2014-03-02 20:19     ` axel.rasmussen1
2014-03-02  5:22 ` [PATCH 8/9] drivers: staging: rtl8187se: wrap excessively long lines Axel Rasmussen
2014-03-02  5:22 ` [PATCH 9/9] drivers: staging: rtl8187se: refactor wmm_param_update Axel Rasmussen
2014-03-03  9:15   ` Dan Carpenter
2014-03-04  7:12 ` [PATCH v2 0/9] drivers: staging: rtl8187se: various code cleanups Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 1/9] drivers: staging: rtl8187se: use netdev_* instead of prink Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 2/9] drivers: staging: rtl8187se: refactor/clean signal smoothing Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 3/9] drivers: staging: rtl8187se: wrap excessively long lines Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 4/9] " Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 5/9] " Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 6/9] drivers: staging: rtl8187se: fixed broken indentation Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 7/9] drivers: staging: rtl8187se: fixed checkpatch.pl errors Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 8/9] drivers: staging: rtl8187se: wrap excessively long lines Axel Rasmussen
2014-03-04  7:12   ` [PATCH v2 9/9] drivers: staging: rtl8187se: refactor wmm_param_update Axel Rasmussen
2014-03-04  9:51   ` [PATCH v2 0/9] drivers: staging: rtl8187se: various code cleanups Dan Carpenter

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=20140303090207.GJ26722@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=axel.rasmussen1@gmail.com \
    --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