diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-10-07 17:48:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-08 07:26:58 -0400 |
commit | 9f8955cc468ddb7d08a0e614a45f9a82c4019b00 (patch) | |
tree | 52c4d3eeb3a0744d92c8bffe87c6bc9615fe3a7e /net/ipv6/output_core.c | |
parent | e2cb77db089796f163092326ca25512845df7a3a (diff) |
ipv6: Merge __ip6_local_out and __ip6_local_out_sk
Only __ip6_local_out_sk has callers so rename __ip6_local_out_sk
__ip6_local_out and remove the previous __ip6_local_out.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/output_core.c')
-rw-r--r-- | net/ipv6/output_core.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c index e5affb5fe095..f93ae1515387 100644 --- a/net/ipv6/output_core.c +++ b/net/ipv6/output_core.c | |||
@@ -138,7 +138,7 @@ int ip6_dst_hoplimit(struct dst_entry *dst) | |||
138 | EXPORT_SYMBOL(ip6_dst_hoplimit); | 138 | EXPORT_SYMBOL(ip6_dst_hoplimit); |
139 | #endif | 139 | #endif |
140 | 140 | ||
141 | int __ip6_local_out_sk(struct sock *sk, struct sk_buff *skb) | 141 | int __ip6_local_out(struct sock *sk, struct sk_buff *skb) |
142 | { | 142 | { |
143 | struct net *net = dev_net(skb_dst(skb)->dev); | 143 | struct net *net = dev_net(skb_dst(skb)->dev); |
144 | int len; | 144 | int len; |
@@ -153,11 +153,6 @@ int __ip6_local_out_sk(struct sock *sk, struct sk_buff *skb) | |||
153 | net, sk, skb, NULL, skb_dst(skb)->dev, | 153 | net, sk, skb, NULL, skb_dst(skb)->dev, |
154 | dst_output); | 154 | dst_output); |
155 | } | 155 | } |
156 | |||
157 | int __ip6_local_out(struct sk_buff *skb) | ||
158 | { | ||
159 | return __ip6_local_out_sk(skb->sk, skb); | ||
160 | } | ||
161 | EXPORT_SYMBOL_GPL(__ip6_local_out); | 156 | EXPORT_SYMBOL_GPL(__ip6_local_out); |
162 | 157 | ||
163 | int ip6_local_out_sk(struct sock *sk, struct sk_buff *skb) | 158 | int ip6_local_out_sk(struct sock *sk, struct sk_buff *skb) |
@@ -165,7 +160,7 @@ int ip6_local_out_sk(struct sock *sk, struct sk_buff *skb) | |||
165 | struct net *net = dev_net(skb_dst(skb)->dev); | 160 | struct net *net = dev_net(skb_dst(skb)->dev); |
166 | int err; | 161 | int err; |
167 | 162 | ||
168 | err = __ip6_local_out_sk(sk, skb); | 163 | err = __ip6_local_out(sk, skb); |
169 | if (likely(err == 1)) | 164 | if (likely(err == 1)) |
170 | err = dst_output(net, sk, skb); | 165 | err = dst_output(net, sk, skb); |
171 | 166 | ||