aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
diff options
context:
space:
mode:
authorLABBE Corentin <clabbe.montjoie@gmail.com>2017-05-24 09:16:44 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-25 13:08:34 -0400
commit50cb16d4fd1263c72f5d384a275a86a72b546121 (patch)
treee3131fd229ec1708a67fd1686034825a349efaba /drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
parentnet-next: stmmac: Convert new_state to bool (diff)
downloadlinux-dev-50cb16d4fd1263c72f5d384a275a86a72b546121.tar.xz
linux-dev-50cb16d4fd1263c72f5d384a275a86a72b546121.zip
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/stmmac/stmmac_main.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c2
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;