summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 10:21:49 -0500
committerThomas Gleixner <tglx@linutronix.de>2019-01-29 14:04:21 -0500
commit434537bbd50fefc89c1e29170bf4030ae3ec445a (patch)
treefeebcd4837e2ff74fa5c5ec7b4252b9f0bbb28c6
parent01cdfa912f1004c463586f52f1dfcbec1274b1f2 (diff)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Marc Zyngier <marc.zyngier@arm.com> Link: https://lkml.kernel.org/r/20190122152151.16139-50-gregkh@linuxfoundation.org
-rw-r--r--kernel/irq/debugfs.c2
-rw-r--r--kernel/irq/irqdomain.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/kernel/irq/debugfs.c b/kernel/irq/debugfs.c
index 6f636136cccc..bbd783a83409 100644
--- a/kernel/irq/debugfs.c
+++ b/kernel/irq/debugfs.c
@@ -256,8 +256,6 @@ static int __init irq_debugfs_init(void)
256 int irq; 256 int irq;
257 257
258 root_dir = debugfs_create_dir("irq", NULL); 258 root_dir = debugfs_create_dir("irq", NULL);
259 if (!root_dir)
260 return -ENOMEM;
261 259
262 irq_domain_debugfs_init(root_dir); 260 irq_domain_debugfs_init(root_dir);
263 261
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 8b0be4bd6565..45c74373c7a4 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -1749,8 +1749,6 @@ void __init irq_domain_debugfs_init(struct dentry *root)
1749 struct irq_domain *d; 1749 struct irq_domain *d;
1750 1750
1751 domain_dir = debugfs_create_dir("domains", root); 1751 domain_dir = debugfs_create_dir("domains", root);
1752 if (!domain_dir)
1753 return;
1754 1752
1755 debugfs_create_file("default", 0444, domain_dir, NULL, 1753 debugfs_create_file("default", 0444, domain_dir, NULL,
1756 &irq_domain_debug_fops); 1754 &irq_domain_debug_fops);