OSDN Git Service

input: touchscren: st: Remove unnecessary parentheses
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 25 Jun 2019 02:51:31 +0000 (19:51 -0700)
committerNathan Chancellor <natechancellor@gmail.com>
Sun, 29 Sep 2019 00:45:11 +0000 (17:45 -0700)
commit6dfdaaa15ee1f1143da7a83ef97932eba13bca58
tree2e5bfd3c3e0c2759e4f43158186bbf0cd6cb569a
parentac2f5357c5705803183917caa2d82d48ba23c234
input: touchscren: st: Remove unnecessary parentheses

Clang warns:

../drivers/input/touchscreen/st/fts_gui.c:61:10: warning: equality
comparison with extraneous parentheses [-Wparentheses-equality]
                if ((i == 0)) {
                     ~~^~~~
../drivers/input/touchscreen/st/fts_gui.c:61:10: note: remove extraneous
parentheses around the comparison to silence this warning
                if ((i == 0)) {
                    ~  ^   ~
../drivers/input/touchscreen/st/fts_gui.c:61:10: note: use '=' to turn
this equality comparison into an assignment
                if ((i == 0)) {
                       ^~
                       =
../drivers/input/touchscreen/st/fts_gui.c:128:10: warning: equality
comparison with extraneous parentheses [-Wparentheses-equality]
                if ((i == 0)) {
                     ~~^~~~
../drivers/input/touchscreen/st/fts_gui.c:128:10: note: remove
extraneous parentheses around the comparison to silence this warning
                if ((i == 0)) {
                    ~  ^   ~
../drivers/input/touchscreen/st/fts_gui.c:128:10: note: use '=' to turn
this equality comparison into an assignment
                if ((i == 0)) {
                       ^~
                       =
../drivers/input/touchscreen/st/fts_gui.c:176:10: warning: equality
comparison with extraneous parentheses [-Wparentheses-equality]
                if ((i == 0)) {
                     ~~^~~~
../drivers/input/touchscreen/st/fts_gui.c:176:10: note: remove
extraneous parentheses around the comparison to silence this warning
                if ((i == 0)) {
                    ~  ^   ~
../drivers/input/touchscreen/st/fts_gui.c:176:10: note: use '=' to turn
this equality comparison into an assignment
                if ((i == 0)) {
                       ^~
                       =
../drivers/input/touchscreen/st/fts_gui.c:244:10: warning: equality
comparison with extraneous parentheses [-Wparentheses-equality]
                if ((i == 0)) {
                     ~~^~~~
../drivers/input/touchscreen/st/fts_gui.c:244:10: note: remove
extraneous parentheses around the comparison to silence this warning
                if ((i == 0)) {
                    ~  ^   ~
../drivers/input/touchscreen/st/fts_gui.c:244:10: note: use '=' to turn
this equality comparison into an assignment
                if ((i == 0)) {
                       ^~
                       =
4 warnings generated.

Fixes: ed29ea5a01b9 ("input: touchpanel: Add ST Touchscreen version 4.1.0 driver")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
drivers/input/touchscreen/st/fts_gui.c