Skip to content

Commit 0401b42

Browse files
Aya Mahfouzgregkh
authored andcommitted
staging: fbtft: fb_st7735r.c: remove extra parentheses around function arguments
Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(..., -( e -) ,...) Signed-off-by: Aya Mahfouz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6e686d7 commit 0401b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/fbtft/fb_st7735r.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static int set_var(struct fbtft_par *par)
130130
write_reg(par, 0x36, MY | MV | (par->bgr << 3));
131131
break;
132132
case 180:
133-
write_reg(par, 0x36, (par->bgr << 3));
133+
write_reg(par, 0x36, par->bgr << 3);
134134
break;
135135
case 90:
136136
write_reg(par, 0x36, MX | MV | (par->bgr << 3));

0 commit comments

Comments
 (0)