Skip to content

Commit

Permalink
xfrm: No need to copy generic neighbour pointer.
Browse files Browse the repository at this point in the history
Nobody reads it any longer.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 5, 2012
1 parent f187bc6 commit d1e31fb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1500,9 +1500,6 @@ static struct dst_entry *xfrm_bundle_create(struct xfrm_policy *policy,
if (!dev)
goto free_dst;

/* Copy neighbour for reachability confirmation */
dst_set_neighbour(dst0, neigh_clone(dst_get_neighbour_noref(dst)));

xfrm_init_path((struct xfrm_dst *)dst0, dst, nfheader_len);
xfrm_init_pmtu(dst_prev);

Expand Down

0 comments on commit d1e31fb

Please sign in to comment.