From: LABBE Corentin Date: Wed, 24 May 2017 07:16:44 +0000 (+0200) Subject: net-next: stmmac: Remove unnecessary parenthesis X-Git-Tag: v4.14-rc1~596^2~370^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50cb16d4fd1263c72f5d384a275a86a72b546121;p=platform%2Fkernel%2Flinux-rpi.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 b944eab..cd398ba 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;