projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c80081b
)
genirq/debugfs: Remove redundant NULL pointer check
author
Thomas Gleixner
<tglx@linutronix.de>
Fri, 7 Jul 2017 06:57:57 +0000
(08:57 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 7 Jul 2017 06:57:57 +0000
(08:57 +0200)
debugfs_remove() can be called with a NULL pointer.
Fixes:
087cdfb662ae5
("genirq/debugfs: Add proper debugfs interface")
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/irqdomain.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/irq/irqdomain.c
b/kernel/irq/irqdomain.c
index 14fe862aa2e36a26d8b97ee5b411bbca87921016..ed47688b8e7981b24323153ec763a19505e2451a 100644
(file)
--- a/
kernel/irq/irqdomain.c
+++ b/
kernel/irq/irqdomain.c
@@
-1667,8
+1667,7
@@
static void debugfs_add_domain_dir(struct irq_domain *d)
static void debugfs_remove_domain_dir(struct irq_domain *d)
{
- if (d->debugfs_file)
- debugfs_remove(d->debugfs_file);
+ debugfs_remove(d->debugfs_file);
}
void __init irq_domain_debugfs_init(struct dentry *root)