mlxsw: spectrum_router: Drop a redundant condition
Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7ff176f81d
commit
85f44a15b1
|
@ -3251,7 +3251,7 @@ mlxsw_sp_fib_entry_offload_refresh(struct mlxsw_sp_fib_entry *fib_entry,
|
|||
return;
|
||||
if (mlxsw_sp_fib_entry_should_offload(fib_entry))
|
||||
mlxsw_sp_fib_entry_offload_set(fib_entry);
|
||||
else if (!mlxsw_sp_fib_entry_should_offload(fib_entry))
|
||||
else
|
||||
mlxsw_sp_fib_entry_offload_unset(fib_entry);
|
||||
return;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue