staging: fbtft: remove unnecessary parantheses around assignment
authorAastha Gupta <aastha.gupta4104@gmail.com>
Sat, 7 Oct 2017 14:47:18 +0000 (20:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:58:33 +0000 (15:58 +0200)
Parentheses are not needed around the right hand side of an assignment.
This patch is done using Coccinelle:

@@
expression a, b;
@@

b =
-(
a
-)

Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_uc1611.c

index 48e3b3f..8eb5e7f 100644 (file)
@@ -225,7 +225,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
        u8 *buf8 = par->txbuf.buf;
        u16 *buf16 = par->txbuf.buf;
        int line_length = par->info->fix.line_length;
-       int y_start = (offset / line_length);
+       int y_start = offset / line_length;
        int y_end = (offset + len - 1) / line_length;
        int x, y, i;
        int ret = 0;