aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/output_core.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-10-07 17:48:40 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-08 07:26:58 -0400
commit792883303cdb3a7edd16017d7aba53926189ef41 (patch)
tree6f55c849c97bb97fed30b4ca92c709cd4e5fe96f /net/ipv6/output_core.c
parent9f8955cc468ddb7d08a0e614a45f9a82c4019b00 (diff)
ipv6: Merge ip6_local_out and ip6_local_out_sk
Stop hidding the sk parameter with an inline helper function and make all of the callers pass it, so that it is clear what the function is doing. 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.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
index f93ae1515387..12855811c6a0 100644
--- a/net/ipv6/output_core.c
+++ b/net/ipv6/output_core.c
@@ -155,7 +155,7 @@ int __ip6_local_out(struct sock *sk, struct sk_buff *skb)
155} 155}
156EXPORT_SYMBOL_GPL(__ip6_local_out); 156EXPORT_SYMBOL_GPL(__ip6_local_out);
157 157
158int ip6_local_out_sk(struct sock *sk, struct sk_buff *skb) 158int ip6_local_out(struct sock *sk, struct sk_buff *skb)
159{ 159{
160 struct net *net = dev_net(skb_dst(skb)->dev); 160 struct net *net = dev_net(skb_dst(skb)->dev);
161 int err; 161 int err;
@@ -166,10 +166,4 @@ int ip6_local_out_sk(struct sock *sk, struct sk_buff *skb)
166 166
167 return err; 167 return err;
168} 168}
169EXPORT_SYMBOL_GPL(ip6_local_out_sk);
170
171int ip6_local_out(struct sk_buff *skb)
172{
173 return ip6_local_out_sk(skb->sk, skb);
174}
175EXPORT_SYMBOL_GPL(ip6_local_out); 169EXPORT_SYMBOL_GPL(ip6_local_out);