aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/kdebugfs.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 15:50:30 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-03 15:39:40 +0200
commit03eb2a08fccc49f93587666e4e1a14ce00df955a (patch)
tree30bf5b474f452fc6c80834a3c16dd569262559d0 /arch/sh/kernel/kdebugfs.c
parenthwpoison-inject: no need to check return value of debugfs_create functions (diff)
downloadlinux-dev-03eb2a08fccc49f93587666e4e1a14ce00df955a.tar.xz
linux-dev-03eb2a08fccc49f93587666e4e1a14ce00df955a.zip
sh: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: <linux-sh@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sh/kernel/kdebugfs.c')
-rw-r--r--arch/sh/kernel/kdebugfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/sh/kernel/kdebugfs.c b/arch/sh/kernel/kdebugfs.c
index 95428e05d212..8b505e1556a5 100644
--- a/arch/sh/kernel/kdebugfs.c
+++ b/arch/sh/kernel/kdebugfs.c
@@ -9,9 +9,6 @@ EXPORT_SYMBOL(arch_debugfs_dir);
static int __init arch_kdebugfs_init(void)
{
arch_debugfs_dir = debugfs_create_dir("sh", NULL);
- if (!arch_debugfs_dir)
- return -ENOMEM;
-
return 0;
}
arch_initcall(arch_kdebugfs_init);