mirror of https://gitee.com/openkylin/linux.git
staging: fbtft: remove unnecessary parantheses around assignment
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>
This commit is contained in:
parent
db8c7f2b64
commit
4aca3ca4b7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue