• N
    isdn/hisax: Remove unnecessary parenthesis · faa08325
    Nathan Chancellor 提交于
    Clang warns when more than one set of parentheses are used for single
    conditional statements:
    
    drivers/isdn/hisax/w6692.c:627:30: warning: equality comparison with
    extraneous parentheses [-Wparentheses-equality]
                    if ((cs->dc.w6692.ph_state == W_L1IND_DRD)) {
                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
    drivers/isdn/hisax/w6692.c:627:30: note: remove extraneous parentheses
    around the comparison to silence this warning
                    if ((cs->dc.w6692.ph_state == W_L1IND_DRD)) {
                        ~                      ^             ~
    drivers/isdn/hisax/w6692.c:627:30: note: use '=' to turn this equality
    comparison into an assignment
                    if ((cs->dc.w6692.ph_state == W_L1IND_DRD)) {
                                               ^~
                                               =
    1 warning generated.
    
    Remove the parentheses to silence this warning.
    Reported-by: NNick Desaulniers <ndesaulniers@google.com>
    Signed-off-by: NNathan Chancellor <natechancellor@gmail.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    faa08325
w6692.c 28.7 KB