bcache: do not check if debug dentry is ERR or NULL explicitly on remove
authorShenghui Wang <shhuiw@foxmail.com>
Thu, 13 Dec 2018 14:53:47 +0000 (22:53 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Dec 2018 15:15:54 +0000 (08:15 -0700)
commitae17102316550b4b230a283febe31b2a9ff30084
treec75c86901de423e92d0c2f96603277bac8c7372d
parentd2f96f487f471b4c718324ecd1540c89d2be52ac
bcache: do not check if debug dentry is ERR or NULL explicitly on remove

debugfs_remove and debugfs_remove_recursive will check if the dentry
pointer is NULL or ERR, and will do nothing in that case.

Remove the check in cache_set_free and bch_debug_init.

Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/debug.c
drivers/md/bcache/super.c