pxa168_eth: mdiobus_scan() doesn't return NULL anymore
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 7 May 2016 19:53:40 +0000 (22:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2016 04:13:18 +0000 (00:13 -0400)
Now that mdiobus_scan() doesn't return NULL on failure anymore, this driver
no  longer needs to check for it...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c

index 15cf50d7e3168238aa2745bc46697ca9efc91cca..89d0d835352ecf82a91b342a64d701c60da79d20 100644 (file)
@@ -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);