[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <73083313.ix2iJdrut5@wasted.cogentembedded.com>
Date: Sun, 24 Apr 2016 20:27:49 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: f.fainelli@...il.com, isubramanian@....com, kchudgar@....com
Cc: netdev@...r.kernel.org, arnd@...db.de
Subject: [PATCH 2/5] xgene: get_phy_device() doesn't return NULL anymore
Now that get_phy_device() no longer returns NULL on error, we don't need
to check for it...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
---
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: net-next/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
===================================================================
--- net-next.orig/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
+++ net-next/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
@@ -824,7 +824,7 @@ static int xgene_mdiobus_register(struct
return -EINVAL;
phy = get_phy_device(mdio, phy_id, false);
- if (!phy || IS_ERR(phy))
+ if (IS_ERR(phy))
return -EIO;
ret = phy_device_register(phy);
Powered by blists - more mailing lists