cavium/liquidio: fix some error handling in lio_set_phys_id()

There was a missing assignment so the "if (ret)" on the next line is
never true.

Fixes: f21fb3ed36 ('Add support of Cavium Liquidio ethernet adapters')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dan Carpenter 2015-06-24 17:47:02 +03:00 committed by David S. Miller
parent 5102e23791
commit cbdb97773e
1 changed files with 3 additions and 2 deletions

View File

@ -434,8 +434,9 @@ static int lio_set_phys_id(struct net_device *netdev,
if (ret) if (ret)
return ret; return ret;
octnet_mdio45_access(lio, 1, LIO68XX_LED_BEACON_ADDR, ret = octnet_mdio45_access(lio, 1,
&lio->phy_beacon_val); LIO68XX_LED_BEACON_ADDR,
&lio->phy_beacon_val);
if (ret) if (ret)
return ret; return ret;