]> git.baikalelectronics.ru Git - kernel.git/commit
net: neterion: vxge: Remove unnecessary parentheses
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 20 Sep 2018 20:37:33 +0000 (13:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:00:09 +0000 (19:00 -0700)
commitef17cccb4090b89586d6b5a0cc30eacd616583dc
tree0e68b930f0e2a9187ad71f98dc9f8da8e37ec4e1
parent71db476fe6401b59e60810864d5b7820c517397e
net: neterion: vxge: Remove unnecessary parentheses

Clang warns when multiple pairs of parentheses are used for a single
conditional statement.

drivers/net/ethernet/neterion/vxge/vxge-traffic.c:2265:31: warning:
equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((hldev->config.intr_mode ==
VXGE_HW_INTR_MODE_MSIX_ONE_SHOT))
             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/neterion/vxge/vxge-traffic.c:2265:31: note: remove
extraneous parentheses around the comparison to silence this warning
        if ((hldev->config.intr_mode ==
VXGE_HW_INTR_MODE_MSIX_ONE_SHOT))
            ~                        ^                                 ~
drivers/net/ethernet/neterion/vxge/vxge-traffic.c:2265:31: note: use '='
to turn this equality comparison into an assignment
        if ((hldev->config.intr_mode ==
VXGE_HW_INTR_MODE_MSIX_ONE_SHOT))
                                     ^~
                                     =
1 warning generated.

Link: https://github.com/ClangBuiltLinux/linux/issues/124
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/neterion/vxge/vxge-traffic.c