Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1645264 > unrolled thread

[PATCH 2/4] net-next: stmmac: Remove unnecessary parenthesis

Started byCorentin Labbe <clabbe.montjoie@gmail.com>
First post2017-05-19 09:20 +0200
Last post2017-05-19 09:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/4] net-next: stmmac: Remove unnecessary parenthesis Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-19 09:20 +0200

#1645264 — [PATCH 2/4] net-next: stmmac: Remove unnecessary parenthesis

FromCorentin Labbe <clabbe.montjoie@gmail.com>
Date2017-05-19 09:20 +0200
Subject[PATCH 2/4] net-next: stmmac: Remove unnecessary parenthesis
Message-ID<tIKmB-7av-13@gated-at.bofh.it>
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 2b778f63d1d5..e008cded388e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -799,7 +799,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 = 1;
-			if (!(phydev->duplex))
+			if (!phydev->duplex)
 				ctrl &= ~priv->hw->link.duplex;
 			else
 				ctrl |= priv->hw->link.duplex;
-- 
2.13.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web