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:
parent
5102e23791
commit
cbdb97773e
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue