diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-07-07 08:57:57 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-07-07 08:57:57 +0200 |
commit | f610c9d68b1a47f539b7764f4b5ce07d32fb9ae1 (patch) | |
tree | c13fa2b1033f82f8d155ac4fb55fd4dedaa2319b | |
parent | c80081b9209713e0fe86d3def395a9fc66503c58 (diff) |
genirq/debugfs: Remove redundant NULL pointer check
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>
-rw-r--r-- | kernel/irq/irqdomain.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 14fe862aa2e3..ed47688b8e79 100644 --- 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) |