From: Fabian Frederick Date: Fri, 8 Aug 2014 21:22:20 +0000 (-0700) Subject: kernel/gcov/fs.c: remove unnecessary null test before debugfs_remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=834b18b23e1012e6c2987af703490bc60956d211;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 Cc: Peter Oberparleiter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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; }