Commit 434537bb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Thomas Gleixner

genirq/debugfs: 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/20190122152151.16139-50-gregkh@linuxfoundation.org
parent 01cdfa91
...@@ -256,8 +256,6 @@ static int __init irq_debugfs_init(void) ...@@ -256,8 +256,6 @@ static int __init irq_debugfs_init(void)
int irq; int irq;
root_dir = debugfs_create_dir("irq", NULL); root_dir = debugfs_create_dir("irq", NULL);
if (!root_dir)
return -ENOMEM;
irq_domain_debugfs_init(root_dir); irq_domain_debugfs_init(root_dir);
......
...@@ -1749,8 +1749,6 @@ void __init irq_domain_debugfs_init(struct dentry *root) ...@@ -1749,8 +1749,6 @@ void __init irq_domain_debugfs_init(struct dentry *root)
struct irq_domain *d; struct irq_domain *d;
domain_dir = debugfs_create_dir("domains", root); domain_dir = debugfs_create_dir("domains", root);
if (!domain_dir)
return;
debugfs_create_file("default", 0444, domain_dir, NULL, debugfs_create_file("default", 0444, domain_dir, NULL,
&irq_domain_debug_fops); &irq_domain_debug_fops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment