diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-09 11:58:56 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-03-04 12:44:25 +0100 |
commit | 860286cf33963fa8a0fe542995bdec2df5cb3abb (patch) | |
tree | 67eb189062a08cefbe74f6d1dd7869dd03526f47 /arch/powerpc/kernel/setup-common.c | |
parent | powerpc/83xx: Add some error handling in 'quirk_mpc8360e_qe_enet10()' (diff) | |
download | linux-860286cf33963fa8a0fe542995bdec2df5cb3abb.tar.xz linux-860286cf33963fa8a0fe542995bdec2df5cb3abb.zip |
powerpc/kernel: 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.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200209105901.1620958-1-gregkh@linuxfoundation.org
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 7f8c890360fe..f9c0d888ce8a 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -787,8 +787,7 @@ EXPORT_SYMBOL(powerpc_debugfs_root); static int powerpc_debugfs_init(void) { powerpc_debugfs_root = debugfs_create_dir("powerpc", NULL); - - return powerpc_debugfs_root == NULL; + return 0; } arch_initcall(powerpc_debugfs_init); #endif |