mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
d1fd345e20
commit
005d16b602
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user