|
@@ -371,7 +371,7 @@ int inet6_release(struct socket *sock)
|
|
|
|
|
|
EXPORT_SYMBOL(inet6_release);
|
|
|
|
|
|
-int inet6_destroy_sock(struct sock *sk)
|
|
|
+void inet6_destroy_sock(struct sock *sk)
|
|
|
{
|
|
|
struct ipv6_pinfo *np = inet6_sk(sk);
|
|
|
struct sk_buff *skb;
|
|
@@ -389,8 +389,6 @@ int inet6_destroy_sock(struct sock *sk)
|
|
|
|
|
|
if ((opt = xchg(&np->opt, NULL)) != NULL)
|
|
|
sock_kfree_s(sk, opt, opt->tot_len);
|
|
|
-
|
|
|
- return 0;
|
|
|
}
|
|
|
|
|
|
EXPORT_SYMBOL_GPL(inet6_destroy_sock);
|