projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1fd345
)
mfd: ab8500-debugfs: Remove unnecessary null test before debugfs_remove_recursive
author
Fabian Frederick
<fabf@skynet.be>
Sat, 28 Jun 2014 11:58:17 +0000
(13:58 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 9 Jul 2014 13:58:21 +0000
(14:58 +0100)
Fix checkpatch warning:
WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/ab8500-debugfs.c
b/drivers/mfd/ab8500-debugfs.c
index d514e3646f2a6b703814495febaeb329d57485b8..8452c15bf4d4f2879cd62d4a20a6ab47047d3f23 100644
(file)
--- a/
drivers/mfd/ab8500-debugfs.c
+++ b/
drivers/mfd/ab8500-debugfs.c
@@
-3191,8
+3191,7
@@
static int ab8500_debug_probe(struct platform_device *plf)
return 0;
err:
- if (ab8500_dir)
- debugfs_remove_recursive(ab8500_dir);
+ debugfs_remove_recursive(ab8500_dir);
dev_err(&plf->dev, "failed to create debugfs entries.\n");
return -ENOMEM;