diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-09-20 13:37:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-21 19:00:09 -0700 |
commit | b1e51eabf9ec0bdeeaa86d9589749115d78e3a50 (patch) | |
tree | 0e68b930f0e2a9187ad71f98dc9f8da8e37ec4e1 /scripts/file-size.sh | |
parent | net: phy: don't reschedule state machine when PHY is halted (diff) | |
download | linux-dev-b1e51eabf9ec0bdeeaa86d9589749115d78e3a50.tar.xz linux-dev-b1e51eabf9ec0bdeeaa86d9589749115d78e3a50.zip |
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>
Diffstat (limited to 'scripts/file-size.sh')
0 files changed, 0 insertions, 0 deletions