Skip to content
Snippets Groups Projects
Select Git revision
  • 09e805d2570a3a94f13dd9c9ad2bcab23da76e09
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

neterion

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Nathan Chancellor authored and David S. Miller committed
    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: default avatarNathan Chancellor <natechancellor@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b1e51eab
    History
    Name Last commit Last update
    ..