Commit 2259dca3 authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by David S. Miller

net/tg3: simplify conditional

Simplify: ((a && !b) || (!a && b)) => (a != b)
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aa3bc6c6
...@@ -9968,8 +9968,7 @@ static int tg3_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam ...@@ -9968,8 +9968,7 @@ static int tg3_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam
if (!(phydev->supported & SUPPORTED_Pause) || if (!(phydev->supported & SUPPORTED_Pause) ||
(!(phydev->supported & SUPPORTED_Asym_Pause) && (!(phydev->supported & SUPPORTED_Asym_Pause) &&
((epause->rx_pause && !epause->tx_pause) || (epause->rx_pause != epause->tx_pause)))
(!epause->rx_pause && epause->tx_pause))))
return -EINVAL; return -EINVAL;
tp->link_config.flowctrl = 0; tp->link_config.flowctrl = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment