Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59efcbaf authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller
Browse files

pxa168_eth: mdiobus_scan() doesn't return NULL anymore



Now that mdiobus_scan() doesn't return NULL on failure anymore, this driver
no  longer needs to check for it...

Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7c878bb3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -981,8 +981,6 @@ static int pxa168_init_phy(struct net_device *dev)
	pep->phy = mdiobus_scan(pep->smi_bus, pep->phy_addr);
	if (IS_ERR(pep->phy))
		return PTR_ERR(pep->phy);
	if (!pep->phy)
		return -ENODEV;

	err = phy_connect_direct(dev, pep->phy, pxa168_eth_adjust_link,
				 pep->phy_intf);