summaryrefslogtreecommitdiff
path: root/arch/x86/xen/debugfs.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 17:35:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-03 16:49:07 +0300
commitad09137631e6e5acfaf288f3ba3f4b3a9f855d16 (patch)
tree68acfae728ec345b19addcc39b83a23df6be3ce5 /arch/x86/xen/debugfs.c
parent2d146b924ec3c0873f06308d149684dc1105d9a3 (diff)
downloadlinux-ad09137631e6e5acfaf288f3ba3f4b3a9f855d16.tar.xz
x86: xen: 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: Boris Ostrovsky <boris.ostrovsky@oracle.com> Cc: Stefano Stabellini <sstabellini@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: <x86@kernel.org> Cc: <xen-devel@lists.xenproject.org> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/xen/debugfs.c')
-rw-r--r--arch/x86/xen/debugfs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/xen/debugfs.c b/arch/x86/xen/debugfs.c
index 13da87918b4f..532410998684 100644
--- a/arch/x86/xen/debugfs.c
+++ b/arch/x86/xen/debugfs.c
@@ -9,13 +9,8 @@ static struct dentry *d_xen_debug;
struct dentry * __init xen_init_debugfs(void)
{
- if (!d_xen_debug) {
+ if (!d_xen_debug)
d_xen_debug = debugfs_create_dir("xen", NULL);
-
- if (!d_xen_debug)
- pr_warning("Could not create 'xen' debugfs directory\n");
- }
-
return d_xen_debug;
}