staging: sm750fb: remove unnecessary parentheses
PATCH 1/1 staging: sm750fb: remove unnecessary parentheses
Remove unnecessary parentheses around equality checks in sm750_accel.c
and ddk750_swi2c.c to clear checkpatch.pl checks and improve code
readability.
Signed-off-by Omer PALA <[email protected]>
--- drivers/staging/sm750fb/ddk750_swi2c.c | 2 +- drivers/staging/sm750fb/sm750_accel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/sm750fb/ddk750_swi2c.c +1 -1
@@ -393,7 +393,7 @@ long sm750_sw_i2c_init(unsigned char clk_gpio, unsigned char data_gpio)* Return 0 if the GPIO pins to be used is out of range. The * range is only from [0..63] */ -if ((clk_gpio >31 ) || (data_gpio >31 )) +if (clk_gpio >31 || data_gpio >31 )return -1 ;if (sm750_get_chip_type () ==SM750LE )
drivers/staging/sm750fb/sm750_accel.c +1 -1
@@ -202,7 +202,7 @@ int sm750_hw_copyarea(struct lynx_accel *accel, } } -if ((direction ==BOTTOM_TO_TOP ) || (direction ==RIGHT_TO_LEFT )) { +if (direction ==BOTTOM_TO_TOP || direction ==RIGHT_TO_LEFT ) { sx += width -1 ; sy += height -1 ; dx += width -1 ;
Signature · 1 line
2.55.0
Greg KH
maintainerQuoted 5 lines · Omer PALA
Remove unnecessary parentheses around equality checks in
sm750_accel.cand
ddk750_swi2c.cto clear checkpatch.pl checks and improve codereadability.
Why the extra blank lines in the changelog text?
And no, this doesn't increase readability, now you need to go and remember the operator precidence ordering, right? checkpatch shouldn't be warning of this option in these files, are you sure you are using the latest tree?
thanks,
greg k-h