From: zhong jiang Date: Wed, 8 Aug 2018 14:58:33 +0000 (+0800) Subject: drivers/block/mtip32xx: remove the null check for debugfs_remove_recursive X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d5fcc4e46e5168e6a6ce1e350ad0714a9d880c8e;p=openwrt%2Fstaging%2Fblogic.git 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: zhong jiang Signed-off-by: Jens Axboe --- diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index c73626decb46..db253cd5b32a 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -2575,8 +2575,7 @@ 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); + debugfs_remove_recursive(dd->dfs_node); } /*