mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
ad09137631
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>
17 lines
310 B
C
17 lines
310 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/init.h>
|
|
#include <linux/debugfs.h>
|
|
#include <linux/slab.h>
|
|
|
|
#include "debugfs.h"
|
|
|
|
static struct dentry *d_xen_debug;
|
|
|
|
struct dentry * __init xen_init_debugfs(void)
|
|
{
|
|
if (!d_xen_debug)
|
|
d_xen_debug = debugfs_create_dir("xen", NULL);
|
|
return d_xen_debug;
|
|
}
|
|
|