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)
commitb04720aee9a61b0b2f03a81d575fdcfb84c43c34
tree7f8a0b1e794b850df354fa7b9fcf9a3551370307
parent0705297e511a334e99edf7da0d9a79f4d6b1c028
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