OSDN Git Service

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)
commit90ac245814abc30d2423474310654d31e3908b2f
tree25dbac736bc3b1ccc68e805bd88645c1f346231c
parente689e998e102100bdf7991763d4c244704846f2d
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