diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-27 23:07:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-03 02:05:29 +0200 |
commit | fb0d164cc1e46ddb22e8fac9f9cb94fdaeddd70f (patch) | |
tree | 32423811167d177312541d940764f9aeb3e84cef /net/caif/caif_socket.c | |
parent | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: remove unnecessary null test... (diff) | |
download | linux-fb0d164cc1e46ddb22e8fac9f9cb94fdaeddd70f.tar.xz linux-fb0d164cc1e46ddb22e8fac9f9cb94fdaeddd70f.zip |
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>
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) 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; |