Skip to content

Commit

Permalink
amd-xgbe: unwind on error in xgbe_mdio_register()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Jun 11, 2014
1 parent 0aaf43f commit 8fc908c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8fc908c

Please sign in to comment.