diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-08-08 10:58:33 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-08 11:17:18 -0400 |
commit | d5fcc4e46e5168e6a6ce1e350ad0714a9d880c8e (patch) | |
tree | e94b48c183e34a8cb8aa4ccf201d644f0f77eace | |
parent | f7ecb1b109da1006a08d5675debe60990e824432 (diff) |
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 <zhongjiang@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
2575 | 2575 | ||
2576 | static void mtip_hw_debugfs_exit(struct driver_data *dd) | 2576 | static void mtip_hw_debugfs_exit(struct driver_data *dd) |
2577 | { | 2577 | { |
2578 | if (dd->dfs_node) | 2578 | debugfs_remove_recursive(dd->dfs_node); |
2579 | debugfs_remove_recursive(dd->dfs_node); | ||
2580 | } | 2579 | } |
2581 | 2580 | ||
2582 | /* | 2581 | /* |