summaryrefslogtreecommitdiffstats
path: root/kernel/gcov
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-08-08 23:22:20 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-09 00:57:24 +0200
commit834b18b23e1012e6c2987af703490bc60956d211 (patch)
tree99b52f9f3a022c2bc8fe4d054357f72456d6623e /kernel/gcov
parentfs/exofs/ore_raid.c: replace count*size kzalloc by kcalloc (diff)
downloadlinux-834b18b23e1012e6c2987af703490bc60956d211.tar.xz
linux-834b18b23e1012e6c2987af703490bc60956d211.zip
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>
Diffstat (limited to 'kernel/gcov')
-rw-r--r--kernel/gcov/fs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/gcov/fs.c b/kernel/gcov/fs.c
index 15ff01a76379..edf67c493a8e 100644
--- a/kernel/gcov/fs.c
+++ b/kernel/gcov/fs.c
@@ -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;
}