From: David S. Miller Date: Tue, 3 Jul 2012 05:53:37 +0000 (-0700) Subject: xfrm: No need to copy generic neighbour pointer. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d1e31fb02b31ba88d5650d97c35eb58f52bfe0e1;p=openwrt%2Fstaging%2Fblogic.git xfrm: No need to copy generic neighbour pointer. Nobody reads it any longer. Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index a28a3f972d5b..6e97855b5842 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -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);