diff options
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 54c836a2216..5dbb81bc967 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -450,15 +450,6 @@ int sock_setsockopt(struct socket *sock, int level, int optname, | |||
450 | * Options without arguments | 450 | * Options without arguments |
451 | */ | 451 | */ |
452 | 452 | ||
453 | #ifdef SO_DONTLINGER /* Compatibility item... */ | ||
454 | if (optname == SO_DONTLINGER) { | ||
455 | lock_sock(sk); | ||
456 | sock_reset_flag(sk, SOCK_LINGER); | ||
457 | release_sock(sk); | ||
458 | return 0; | ||
459 | } | ||
460 | #endif | ||
461 | |||
462 | if (optname == SO_BINDTODEVICE) | 453 | if (optname == SO_BINDTODEVICE) |
463 | return sock_bindtodevice(sk, optval, optlen); | 454 | return sock_bindtodevice(sk, optval, optlen); |
464 | 455 | ||
@@ -942,7 +933,6 @@ static void sk_prot_free(struct proto *prot, struct sock *sk) | |||
942 | * @family: protocol family | 933 | * @family: protocol family |
943 | * @priority: for allocation (%GFP_KERNEL, %GFP_ATOMIC, etc) | 934 | * @priority: for allocation (%GFP_KERNEL, %GFP_ATOMIC, etc) |
944 | * @prot: struct proto associated with this new sock instance | 935 | * @prot: struct proto associated with this new sock instance |
945 | * @zero_it: if we should zero the newly allocated sock | ||
946 | */ | 936 | */ |
947 | struct sock *sk_alloc(struct net *net, int family, gfp_t priority, | 937 | struct sock *sk_alloc(struct net *net, int family, gfp_t priority, |
948 | struct proto *prot) | 938 | struct proto *prot) |