diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2017-05-24 09:16:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-25 13:08:34 -0400 |
commit | 50cb16d4fd1263c72f5d384a275a86a72b546121 (patch) | |
tree | e3131fd229ec1708a67fd1686034825a349efaba /drivers/net/ethernet/stmicro | |
parent | 99a4cca216d98d48e5bc848b9e88131efa364fb6 (diff) |
net-next: stmmac: Remove unnecessary parenthesis
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index b944eabaa1ec..cd398bafb5e9 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -789,7 +789,7 @@ static void stmmac_adjust_link(struct net_device *dev) * If not, we operate in half-duplex mode. */ if (phydev->duplex != priv->oldduplex) { new_state = true; - if (!(phydev->duplex)) + if (!phydev->duplex) ctrl &= ~priv->hw->link.duplex; else ctrl |= priv->hw->link.duplex; |