netdev: octeon: fix return value check in octeon_mgmt_init_phy()
[linux-3.10.git] / drivers / net / ethernet / octeon / octeon_mgmt.c
index c42bbb1..a688a2d 100644 (file)
@@ -722,10 +722,8 @@ static int octeon_mgmt_init_phy(struct net_device *netdev)
                                   octeon_mgmt_adjust_link, 0,
                                   PHY_INTERFACE_MODE_MII);
 
-       if (IS_ERR(p->phydev)) {
-               p->phydev = NULL;
+       if (!p->phydev)
                return -1;
-       }
 
        phy_start_aneg(p->phydev);