diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-06-11 06:56:26 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-11 22:39:19 (GMT) |
commit | 8fc908c3c3a362df1bf9b8f999d30e2c4258d3fc (patch) | |
tree | 2c8ccc847bf8129f74255f7d7f00d9a48355924d /drivers | |
parent | 0aaf43f51dc7e7f00029c90d778e895a88a90cc6 (diff) | |
download | linux-8fc908c3c3a362df1bf9b8f999d30e2c4258d3fc.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c index 52bbdbf..ea7a5d6 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c @@ -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", |