]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Consolidate identical functions
authorIdo Schimmel <idosch@mellanox.com>
Thu, 26 Dec 2019 16:41:16 +0000 (18:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 21:13:22 +0000 (13:13 -0800)
commit774f9fb5640511eec38fefe88f6fa0d80673d1a6
tree7f8a0b1e794b850df354fa7b9fcf9a3551370307
parent346f6007b608c2ab058c699f2735d6e02b79c927
mlxsw: spectrum_router: Consolidate identical functions

After the last patch mlxsw_sp_fib{4,6}_node_entry_link() and
mlxsw_sp_fib{4,6}_node_entry_unlink() are identical and can therefore be
consolidated into the same common function.

Perform the consolidation.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c