projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7ecb1b
)
drivers/block/mtip32xx: remove the null check for debugfs_remove_recursive
author
zhong jiang
<zhongjiang@huawei.com>
Wed, 8 Aug 2018 14:58:33 +0000
(22:58 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 8 Aug 2018 15:17:18 +0000
(09:17 -0600)
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>
drivers/block/mtip32xx/mtip32xx.c
patch
|
blob
|
history
diff --git
a/drivers/block/mtip32xx/mtip32xx.c
b/drivers/block/mtip32xx/mtip32xx.c
index c73626decb46e9af8c694eef5820719707d2faaa..db253cd5b32af2d8920934aaaa49bf806c922a8f 100644
(file)
--- 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);
}
/*