Skip to content

Commit b30367c

Browse files
Aya Mahfouzgregkh
authored andcommitted
staging: fbtft: fbtft_device.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 248d828 commit b30367c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/fbtft/fbtft_device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,14 +1126,14 @@ static int write_gpio16_wr_slow(struct fbtft_par *par, void *buf, size_t len)
11261126
for (i = 0; i < 16; i++) {
11271127
if ((data & 1) != (prev_data & 1))
11281128
gpio_set_value(par->gpio.db[i],
1129-
(data & 1));
1129+
data & 1);
11301130
data >>= 1;
11311131
prev_data >>= 1;
11321132
}
11331133
}
11341134
#else
11351135
for (i = 0; i < 16; i++) {
1136-
gpio_set_value(par->gpio.db[i], (data & 1));
1136+
gpio_set_value(par->gpio.db[i], data & 1);
11371137
data >>= 1;
11381138
}
11391139
#endif

0 commit comments

Comments
 (0)