diff options
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r-- | net/dccp/ipv4.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index feb3fa5b7141..5669c895c873 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
@@ -991,7 +991,6 @@ static struct inet_protosw dccp_v4_protosw = { | |||
991 | 991 | ||
992 | static int __init dccp_v4_init(void) | 992 | static int __init dccp_v4_init(void) |
993 | { | 993 | { |
994 | struct socket *socket; | ||
995 | int err = proto_register(&dccp_v4_prot, 1); | 994 | int err = proto_register(&dccp_v4_prot, 1); |
996 | 995 | ||
997 | if (err != 0) | 996 | if (err != 0) |
@@ -1003,11 +1002,10 @@ static int __init dccp_v4_init(void) | |||
1003 | 1002 | ||
1004 | inet_register_protosw(&dccp_v4_protosw); | 1003 | inet_register_protosw(&dccp_v4_protosw); |
1005 | 1004 | ||
1006 | err = inet_ctl_sock_create(&socket, PF_INET, | 1005 | err = inet_ctl_sock_create(&dccp_v4_ctl_sk, PF_INET, |
1007 | SOCK_DCCP, IPPROTO_DCCP); | 1006 | SOCK_DCCP, IPPROTO_DCCP); |
1008 | if (err) | 1007 | if (err) |
1009 | goto out_unregister_protosw; | 1008 | goto out_unregister_protosw; |
1010 | dccp_v4_ctl_sk = socket->sk; | ||
1011 | out: | 1009 | out: |
1012 | return err; | 1010 | return err; |
1013 | out_unregister_protosw: | 1011 | out_unregister_protosw: |