diff options
Diffstat (limited to 'net/caif/caif_socket.c')
-rw-r--r-- | net/caif/caif_socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index e8437094d15f..43f750e88e19 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c | |||
@@ -908,8 +908,7 @@ static int caif_release(struct socket *sock) | |||
908 | sock->sk = NULL; | 908 | sock->sk = NULL; |
909 | 909 | ||
910 | WARN_ON(IS_ERR(cf_sk->debugfs_socket_dir)); | 910 | WARN_ON(IS_ERR(cf_sk->debugfs_socket_dir)); |
911 | if (cf_sk->debugfs_socket_dir != NULL) | 911 | debugfs_remove_recursive(cf_sk->debugfs_socket_dir); |
912 | debugfs_remove_recursive(cf_sk->debugfs_socket_dir); | ||
913 | 912 | ||
914 | lock_sock(&(cf_sk->sk)); | 913 | lock_sock(&(cf_sk->sk)); |
915 | sk->sk_state = CAIF_DISCONNECTED; | 914 | sk->sk_state = CAIF_DISCONNECTED; |