Commit 8fc908c3 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

amd-xgbe: unwind on error in xgbe_mdio_register()

There is a typo here so we return directly instead of unwinding.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0aaf43f5
...@@ -367,7 +367,7 @@ int xgbe_mdio_register(struct xgbe_prv_data *pdata) ...@@ -367,7 +367,7 @@ int xgbe_mdio_register(struct xgbe_prv_data *pdata)
if (!phydev->drv || (phydev->drv->phy_id == 0)) { if (!phydev->drv || (phydev->drv->phy_id == 0)) {
netdev_err(netdev, "phy_id not valid\n"); netdev_err(netdev, "phy_id not valid\n");
return -ENODEV; ret = -ENODEV;
goto err_phy_connect; goto err_phy_connect;
} }
DBGPR(" phy_connect_direct succeeded for PHY %s, link=%d\n", DBGPR(" phy_connect_direct succeeded for PHY %s, link=%d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment