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

Commit d5fcc4e4 authored by zhong jiang's avatar zhong jiang Committed by Jens Axboe
Browse files

drivers/block/mtip32xx: remove the null check for debugfs_remove_recursive



debugfs_remove_recursive has taken null pointer into account. So it is
safe to drop the null check before calling the function.

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f7ecb1b1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2575,7 +2575,6 @@ static int mtip_hw_debugfs_init(struct driver_data *dd)

static void mtip_hw_debugfs_exit(struct driver_data *dd)
{
	if (dd->dfs_node)
	debugfs_remove_recursive(dd->dfs_node);
}