• Nathan Chancellor's avatar
    net: neterion: vxge: Remove unnecessary parentheses · b1e51eab
    Nathan Chancellor authored
    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/124Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b1e51eab
vxge-traffic.c 65.2 KB