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: Fabian Frederick <fabf@skynet.be> Cc: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b134079f1f
commit
834b18b23e
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue