diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-16 17:30:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-16 17:30:47 -0400 |
commit | a29282972cc9b80126d4e4d68251c6712bdad051 (patch) | |
tree | 75abc3d6ae44b7c88e3452df2aa810adecd41cdc /net/ipv6 | |
parent | fec8292d9cb662274b583c5c69fdfa6932e593a5 (diff) |
ipv6: Use calculated 'neigh' instead of re-evaluating dst->neighbour
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index f0f144cac0bd..36362e9513f0 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -141,7 +141,7 @@ static int ip6_finish_output2(struct sk_buff *skb) | |||
141 | if (hh->hh_len) | 141 | if (hh->hh_len) |
142 | return neigh_hh_output(hh, skb); | 142 | return neigh_hh_output(hh, skb); |
143 | else | 143 | else |
144 | return dst->neighbour->output(skb); | 144 | return neigh->output(skb); |
145 | } | 145 | } |
146 | IP6_INC_STATS_BH(dev_net(dst->dev), | 146 | IP6_INC_STATS_BH(dev_net(dst->dev), |
147 | ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES); | 147 | ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES); |