]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mfd: ab8500-debugfs: Remove unnecessary null test before debugfs_remove_recursive
authorFabian Frederick <fabf@skynet.be>
Sat, 28 Jun 2014 11:58:17 +0000 (13:58 +0200)
committerLee 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

index d514e3646f2a6b703814495febaeb329d57485b8..8452c15bf4d4f2879cd62d4a20a6ab47047d3f23 100644 (file)
@@ -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;