summaryrefslogtreecommitdiffstats
path: root/kernel/irq/debugfs.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 16:21:49 +0100
committerThomas Gleixner <tglx@linutronix.de>2019-01-29 20:04:21 +0100
commit434537bbd50fefc89c1e29170bf4030ae3ec445a (patch)
treefeebcd4837e2ff74fa5c5ec7b4252b9f0bbb28c6 /kernel/irq/debugfs.c
parentgenirq: Correctly annotate implicit fall through (diff)
downloadlinux-434537bbd50fefc89c1e29170bf4030ae3ec445a.tar.xz
linux-434537bbd50fefc89c1e29170bf4030ae3ec445a.zip
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
Diffstat (limited to 'kernel/irq/debugfs.c')
-rw-r--r--kernel/irq/debugfs.c2
1 files changed, 0 insertions, 2 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)
int irq;
root_dir = debugfs_create_dir("irq", NULL);
- if (!root_dir)
- return -ENOMEM;
irq_domain_debugfs_init(root_dir);