mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
net/caif/caif_socket.c: remove unnecessary null test before debugfs_remove_recursive
based on checkpatch: "debugfs_remove_recursive(NULL) is safe this check is probably not required" Cc: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no> Cc: "David S. Miller" <davem@davemloft.net> Cc: netdev@vger.kernel.org Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9f16dc2ec7
commit
fb0d164cc1
@ -908,8 +908,7 @@ static int caif_release(struct socket *sock)
|
||||
sock->sk = NULL;
|
||||
|
||||
WARN_ON(IS_ERR(cf_sk->debugfs_socket_dir));
|
||||
if (cf_sk->debugfs_socket_dir != NULL)
|
||||
debugfs_remove_recursive(cf_sk->debugfs_socket_dir);
|
||||
debugfs_remove_recursive(cf_sk->debugfs_socket_dir);
|
||||
|
||||
lock_sock(&(cf_sk->sk));
|
||||
sk->sk_state = CAIF_DISCONNECTED;
|
||||
|
Loading…
Reference in New Issue
Block a user