[PATCH] ethernet: nvidia: Remove extra parens

Subsystems: forcedeth gigabit ethernet driver, networking drivers, the rest

STALE4391d

2 messages, 2 authors, 2014-09-02 · open the first message on its own page

[PATCH] ethernet: nvidia: Remove extra parens

From: David Wood <hidden>
Date: 2014-09-01 22:48:27

Remove unnecessary double parenthesis around if statement.

Signed-off-by: David Wood <redacted>
---
 drivers/net/ethernet/nvidia/forcedeth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c
index 925b296..f39cae6 100644
--- a/drivers/net/ethernet/nvidia/forcedeth.c
+++ b/drivers/net/ethernet/nvidia/forcedeth.c
@@ -1481,7 +1481,7 @@ static int phy_init(struct net_device *dev)
 	}
 
 	/* phy vendor specific configuration */
-	if ((np->phy_oui == PHY_OUI_CICADA)) {
+	if (np->phy_oui == PHY_OUI_CICADA) {
 		if (init_cicada(dev, np, phyinterface)) {
 			netdev_info(dev, "%s: phy init failed\n",
 				    pci_name(np->pci_dev));
-- 
2.0.3

Re: [PATCH] ethernet: nvidia: Remove extra parens

From: David Miller <davem@davemloft.net>
Date: 2014-09-02 20:47:47

From: David Wood <redacted>
Date: Mon, 1 Sep 2014 15:31:55 -0700
Remove unnecessary double parenthesis around if statement.

Signed-off-by: David Wood <redacted>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help