Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb0d164c authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9f16dc2e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -908,7 +908,6 @@ 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);

	lock_sock(&(cf_sk->sk));