From: LABBE Corentin Date: Wed, 24 May 2017 07:16:44 +0000 (+0200) Subject: net-next: stmmac: Remove unnecessary parenthesis X-Git-Tag: v4.13-rc1~157^2~370^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=50cb16d4fd1263c72f5d384a275a86a72b546121;p=karo-tx-linux.git net-next: stmmac: Remove unnecessary parenthesis Signed-off-by: Corentin Labbe Signed-off-by: David S. Miller --- 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;