提交 005d16b6 编写于 作者: F Fabian Frederick 提交者: Lee Jones

mfd: ab8500-debugfs: Remove unnecessary null test before debugfs_remove_recursive

Fix checkpatch warning:
WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 d1fd345e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册