Re: [PATCH] misc: echo: Remove unnecessary parentheses and simplify check for zero

2018-09-17 Thread Nick Desaulniers
On Fri, Sep 14, 2018 at 11:43 PM Nathan Chancellor wrote: > > Clang warns when multiple pairs of parentheses are used for a single > conditional statement. > > drivers/misc/echo/echo.c:384:27: warning: equality comparison with > extraneous parentheses [-Wparentheses-equality] > if ((ec->no

[PATCH] misc: echo: Remove unnecessary parentheses and simplify check for zero

2018-09-14 Thread Nathan Chancellor
Clang warns when multiple pairs of parentheses are used for a single conditional statement. drivers/misc/echo/echo.c:384:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((ec->nonupdate_dwell == 0)) { ^~~~ drivers/mis