Commit 834b18b2 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

kernel/gcov/fs.c: remove unnecessary null test before debugfs_remove

This fixes checkpatch warning:

  WARNING: debugfs_remove(NULL) is safe this check is probably not required
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b134079f
...@@ -784,8 +784,7 @@ static __init int gcov_fs_init(void) ...@@ -784,8 +784,7 @@ static __init int gcov_fs_init(void)
err_remove: err_remove:
pr_err("init failed\n"); pr_err("init failed\n");
if (root_node.dentry) debugfs_remove(root_node.dentry);
debugfs_remove(root_node.dentry);
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment