Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -784,7 +784,6 @@ static __init int gcov_fs_init(void)

err_remove:
	pr_err("init failed\n");
	if (root_node.dentry)
	debugfs_remove(root_node.dentry);

	return rc;