diff options
author | Shannon Nelson <snelson@pensando.io> | 2020-09-01 11:20:24 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-02 15:47:01 -0700 |
commit | 2aaa05a1585f5a0b7d81f8261824872bd96377cb (patch) | |
tree | fed3d731b90848cc42cf1072bca38ae68c372334 /drivers/net/ethernet/pensando/ionic/ionic_ethtool.c | |
parent | ionic: remove unused variable (diff) | |
download | linux-dev-2aaa05a1585f5a0b7d81f8261824872bd96377cb.tar.xz linux-dev-2aaa05a1585f5a0b7d81f8261824872bd96377cb.zip |
ionic: clarify boolean precedence
Add parenthesis to clarify a boolean usage.
Pointed out in https://lore.kernel.org/lkml/202008060413.VgrMuqLJ%25lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pensando/ionic/ionic_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c index 00aad7168915..0d14659fbdfd 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c @@ -298,8 +298,8 @@ static void ionic_get_pauseparam(struct net_device *netdev, pause_type = lif->ionic->idev.port_info->config.pause_type; if (pause_type) { - pause->rx_pause = pause_type & IONIC_PAUSE_F_RX ? 1 : 0; - pause->tx_pause = pause_type & IONIC_PAUSE_F_TX ? 1 : 0; + pause->rx_pause = (pause_type & IONIC_PAUSE_F_RX) ? 1 : 0; + pause->tx_pause = (pause_type & IONIC_PAUSE_F_TX) ? 1 : 0; } } |