amd-xgbe: unwind on error in xgbe_mdio_register()

There is a typo here so we return directly instead of unwinding.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dan Carpenter 2014-06-11 09:56:26 +03:00 committed by David S. Miller
parent 0aaf43f51d
commit 8fc908c3c3
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ int xgbe_mdio_register(struct xgbe_prv_data *pdata)
if (!phydev->drv || (phydev->drv->phy_id == 0)) {
netdev_err(netdev, "phy_id not valid\n");
return -ENODEV;
ret = -ENODEV;
goto err_phy_connect;
}
DBGPR(" phy_connect_direct succeeded for PHY %s, link=%d\n",