diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 15:50:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-03 15:39:40 +0200 |
commit | 03eb2a08fccc49f93587666e4e1a14ce00df955a (patch) | |
tree | 30bf5b474f452fc6c80834a3c16dd569262559d0 /arch/sh/kernel | |
parent | 2fcc6e202a9d45f1556365ee4f4de973e1c834ec (diff) | |
download | linux-03eb2a08fccc49f93587666e4e1a14ce00df955a.tar.bz2 |
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')
-rw-r--r-- | arch/sh/kernel/kdebugfs.c | 3 |
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); |