net-next: stmmac: Remove unnecessary parenthesis
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 24 May 2017 07:16:44 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 17:08:34 +0000 (13:08 -0400)
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index b944eabaa1ecb508fed6f205bf535d812df1bf20..cd398bafb5e9632e4eb495f050d7a17202d052cf 100644 (file)
@@ -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;