]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove redundant pointer check
authorEli Cohen <eli@mellanox.com>
Thu, 31 Oct 2019 07:12:18 +0000 (09:12 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 Nov 2019 21:18:20 +0000 (13:18 -0800)
commit427da181377167b693a7e43978e1874c4fab741d
tree25dbac736bc3b1ccc68e805bd88645c1f346231c
parenteeefe8f4e2ac3aec1ac3df7d00e6c923eecb2e84
net/mlx5e: Remove redundant pointer check

When code reaches the "out" label, n is guaranteed to be valid so we can
unconditionally call neigh_release.

Also change the label to release_neigh to better reflect the fact that
we unconditionally free the neighbour and also match other labels
convention.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c