aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorBrian Haley <brian.haley@hp.com>2008-06-14 20:04:49 -0400
committerDavid S. Miller <davem@davemloft.net>2008-06-14 20:04:49 -0400
commit7d06b2e053d2d536348e3a0f6bb02982a41bea37 (patch)
treeec6a5c3f448e84cd431a0397b9e2a87ca25aec17 /net/ipv6
parent4ae127d1b6c71f9240dd4245f240e6dd8fc98014 (diff)
net: change proto destroy method to return void
Change struct proto destroy function pointer to return void. Noticed by Al Viro. Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/af_inet6.c4
-rw-r--r--net/ipv6/raw.c4
-rw-r--r--net/ipv6/tcp_ipv6.c4
-rw-r--r--net/ipv6/udp.c4
-rw-r--r--net/ipv6/udp_impl.h2
5 files changed, 7 insertions, 11 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index 350457c761e6..3ce8d2f318c6 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -371,7 +371,7 @@ int inet6_release(struct socket *sock)
371 371
372EXPORT_SYMBOL(inet6_release); 372EXPORT_SYMBOL(inet6_release);
373 373
374int inet6_destroy_sock(struct sock *sk) 374void inet6_destroy_sock(struct sock *sk)
375{ 375{
376 struct ipv6_pinfo *np = inet6_sk(sk); 376 struct ipv6_pinfo *np = inet6_sk(sk);
377 struct sk_buff *skb; 377 struct sk_buff *skb;
@@ -389,8 +389,6 @@ int inet6_destroy_sock(struct sock *sk)
389 389
390 if ((opt = xchg(&np->opt, NULL)) != NULL) 390 if ((opt = xchg(&np->opt, NULL)) != NULL)
391 sock_kfree_s(sk, opt, opt->tot_len); 391 sock_kfree_s(sk, opt, opt->tot_len);
392
393 return 0;
394} 392}
395 393
396EXPORT_SYMBOL_GPL(inet6_destroy_sock); 394EXPORT_SYMBOL_GPL(inet6_destroy_sock);
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 70a57e45bf0e..456777d7a407 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1162,13 +1162,13 @@ static void rawv6_close(struct sock *sk, long timeout)
1162 sk_common_release(sk); 1162 sk_common_release(sk);
1163} 1163}
1164 1164
1165static int raw6_destroy(struct sock *sk) 1165static void raw6_destroy(struct sock *sk)
1166{ 1166{
1167 lock_sock(sk); 1167 lock_sock(sk);
1168 ip6_flush_pending_frames(sk); 1168 ip6_flush_pending_frames(sk);
1169 release_sock(sk); 1169 release_sock(sk);
1170 1170
1171 return inet6_destroy_sock(sk); 1171 inet6_destroy_sock(sk);
1172} 1172}
1173 1173
1174static int rawv6_init_sk(struct sock *sk) 1174static int rawv6_init_sk(struct sock *sk)
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index ebed5d3adb82..daefc18d50a0 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1872,7 +1872,7 @@ static int tcp_v6_init_sock(struct sock *sk)
1872 return 0; 1872 return 0;
1873} 1873}
1874 1874
1875static int tcp_v6_destroy_sock(struct sock *sk) 1875static void tcp_v6_destroy_sock(struct sock *sk)
1876{ 1876{
1877#ifdef CONFIG_TCP_MD5SIG 1877#ifdef CONFIG_TCP_MD5SIG
1878 /* Clean up the MD5 key list */ 1878 /* Clean up the MD5 key list */
@@ -1880,7 +1880,7 @@ static int tcp_v6_destroy_sock(struct sock *sk)
1880 tcp_v6_clear_md5_list(sk); 1880 tcp_v6_clear_md5_list(sk);
1881#endif 1881#endif
1882 tcp_v4_destroy_sock(sk); 1882 tcp_v4_destroy_sock(sk);
1883 return inet6_destroy_sock(sk); 1883 inet6_destroy_sock(sk);
1884} 1884}
1885 1885
1886#ifdef CONFIG_PROC_FS 1886#ifdef CONFIG_PROC_FS
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index e0693fffc9bd..09687f7a8564 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -879,15 +879,13 @@ do_confirm:
879 goto out; 879 goto out;
880} 880}
881 881
882int udpv6_destroy_sock(struct sock *sk) 882void udpv6_destroy_sock(struct sock *sk)
883{ 883{
884 lock_sock(sk); 884 lock_sock(sk);
885 udp_v6_flush_pending_frames(sk); 885 udp_v6_flush_pending_frames(sk);
886 release_sock(sk); 886 release_sock(sk);
887 887
888 inet6_destroy_sock(sk); 888 inet6_destroy_sock(sk);
889
890 return 0;
891} 889}
892 890
893/* 891/*
diff --git a/net/ipv6/udp_impl.h b/net/ipv6/udp_impl.h
index 321b81a4d418..92dd7da766d8 100644
--- a/net/ipv6/udp_impl.h
+++ b/net/ipv6/udp_impl.h
@@ -29,7 +29,7 @@ extern int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk,
29 struct msghdr *msg, size_t len, 29 struct msghdr *msg, size_t len,
30 int noblock, int flags, int *addr_len); 30 int noblock, int flags, int *addr_len);
31extern int udpv6_queue_rcv_skb(struct sock * sk, struct sk_buff *skb); 31extern int udpv6_queue_rcv_skb(struct sock * sk, struct sk_buff *skb);
32extern int udpv6_destroy_sock(struct sock *sk); 32extern void udpv6_destroy_sock(struct sock *sk);
33 33
34#ifdef CONFIG_PROC_FS 34#ifdef CONFIG_PROC_FS
35extern int udp6_seq_show(struct seq_file *seq, void *v); 35extern int udp6_seq_show(struct seq_file *seq, void *v);