summaryrefslogtreecommitdiff
path: root/fs/dlm/main.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-12 18:25:36 +0300
committerDavid Teigland <teigland@redhat.com>2019-07-11 19:01:58 +0300
commita48f9721e6db74dfbeb8d4a2cd616b20017f4b78 (patch)
treee8e753e7b8b4c4b349448ba2fee4c4a17c417035 /fs/dlm/main.c
parentb355516f450703c9015316e429b66a93dfff0e6f (diff)
downloadlinux-a48f9721e6db74dfbeb8d4a2cd616b20017f4b78.tar.xz
dlm: 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: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/main.c')
-rw-r--r--fs/dlm/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/dlm/main.c b/fs/dlm/main.c
index 39579927ed84..afc66a1346d3 100644
--- a/fs/dlm/main.c
+++ b/fs/dlm/main.c
@@ -35,9 +35,7 @@ static int __init init_dlm(void)
if (error)
goto out_lockspace;
- error = dlm_register_debugfs();
- if (error)
- goto out_config;
+ dlm_register_debugfs();
error = dlm_user_init();
if (error)
@@ -61,7 +59,6 @@ static int __init init_dlm(void)
dlm_user_exit();
out_debug:
dlm_unregister_debugfs();
- out_config:
dlm_config_exit();
out_lockspace:
dlm_lockspace_exit();