Skip to content

Commit

Permalink
ipv6: Use calculated 'neigh' instead of re-evaluating dst->neighbour
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 16, 2011
1 parent fec8292 commit a292829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int ip6_finish_output2(struct sk_buff *skb)
if (hh->hh_len)
return neigh_hh_output(hh, skb);
else
return dst->neighbour->output(skb);
return neigh->output(skb);
}
IP6_INC_STATS_BH(dev_net(dst->dev),
ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);
Expand Down

0 comments on commit a292829

Please sign in to comment.