]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Remove redundant check
authorIdo Schimmel <idosch@mellanox.com>
Mon, 6 Feb 2017 15:20:15 +0000 (16:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2017 16:25:57 +0000 (11:25 -0500)
commit3de50bea1661ab7321b3629788406c04753d2258
tree7d8925bd4d31d629b8a88f1d73a12461d595b8e3
parentb30f0758ddfd282551010e7853cb4d1d98d5f8d5
mlxsw: spectrum_router: Remove redundant check

We only add neighbour entries that are also used for nexthops to
'nexthop_neighs_list', so when iterating over this list there's no need
to check that the entry is indeed used for nexthops.

Remove the redundant check.

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