Skip to content

Commit a292829

Browse files
committed
ipv6: Use calculated 'neigh' instead of re-evaluating dst->neighbour
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fec8292 commit a292829

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ipv6/ip6_output.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static int ip6_finish_output2(struct sk_buff *skb)
141141
if (hh->hh_len)
142142
return neigh_hh_output(hh, skb);
143143
else
144-
return dst->neighbour->output(skb);
144+
return neigh->output(skb);
145145
}
146146
IP6_INC_STATS_BH(dev_net(dst->dev),
147147
ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);

0 commit comments

Comments
 (0)