mirror of https://gitee.com/openkylin/linux.git
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
|
@ -784,8 +784,7 @@ static __init int gcov_fs_init(void)
|
|||
|
||||
err_remove:
|
||||
pr_err("init failed\n");
|
||||
if (root_node.dentry)
|
||||
debugfs_remove(root_node.dentry);
|
||||
debugfs_remove(root_node.dentry);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue