mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
mlxsw: spectrum_router: Drop unnecessary WARN_ON_ONCE()
In case the register access failed an error would be logged anyway, so we can drop the warning. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
48ebab31d4
commit
24f91ce0d2
@ -6142,7 +6142,7 @@ static int mlxsw_sp_router_rif_disable(struct mlxsw_sp *mlxsw_sp, u16 rif)
|
||||
|
||||
mlxsw_reg_ritr_rif_pack(ritr_pl, rif);
|
||||
err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
|
||||
if (WARN_ON_ONCE(err))
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
mlxsw_reg_ritr_enable_set(ritr_pl, false);
|
||||
|
Loading…
Reference in New Issue
Block a user