Skip to content

Commit 85f44a1

Browse files
pmachatadavem330
authored andcommitted
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>
1 parent 7ff176f commit 85f44a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3251,7 +3251,7 @@ mlxsw_sp_fib_entry_offload_refresh(struct mlxsw_sp_fib_entry *fib_entry,
32513251
return;
32523252
if (mlxsw_sp_fib_entry_should_offload(fib_entry))
32533253
mlxsw_sp_fib_entry_offload_set(fib_entry);
3254-
else if (!mlxsw_sp_fib_entry_should_offload(fib_entry))
3254+
else
32553255
mlxsw_sp_fib_entry_offload_unset(fib_entry);
32563256
return;
32573257
default:

0 commit comments

Comments
 (0)