diff options
-rw-r--r-- | net/netrom/af_netrom.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 58779624cdbe..74884f4a6255 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -536,11 +536,9 @@ static int nr_release(struct socket *sock) | |||
536 | sk->sk_state_change(sk); | 536 | sk->sk_state_change(sk); |
537 | sock_orphan(sk); | 537 | sock_orphan(sk); |
538 | sock_set_flag(sk, SOCK_DESTROY); | 538 | sock_set_flag(sk, SOCK_DESTROY); |
539 | sk->sk_socket = NULL; | ||
540 | break; | 539 | break; |
541 | 540 | ||
542 | default: | 541 | default: |
543 | sk->sk_socket = NULL; | ||
544 | break; | 542 | break; |
545 | } | 543 | } |
546 | 544 | ||