On Thu, Mar 09, 2017 at 03:47:05PM +1100, Tobin C. Harding wrote:
> Checkpatch emits CHECK: Unnecessary parentheses.
> 
> Remove unnecessary parentheses.
> 
> Signed-off-by: Tobin C. Harding <m...@tobin.cc>
> ---
>  drivers/staging/ks7010/ks_hostif.c | 24 ++++++++++++------------
>  1 file changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/staging/ks7010/ks_hostif.c 
> b/drivers/staging/ks7010/ks_hostif.c
> index a354e34e..b75ef1d6 100644
> --- a/drivers/staging/ks7010/ks_hostif.c
> +++ b/drivers/staging/ks7010/ks_hostif.c
> @@ -36,7 +36,7 @@ inline u8 get_BYTE(struct ks_wlan_private *priv)
>  {
>       u8 data;
>  
> -     data = *(priv->rxp)++;
> +     data = *priv->rxp++;

Are you sure this is ok?  I would have to dig out a book to find the
ordering rules here...

thanks,

greg k-h
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to