Skip to content

Commit f610c9d

Browse files
committed
genirq/debugfs: Remove redundant NULL pointer check
debugfs_remove() can be called with a NULL pointer. Fixes: 087cdfb ("genirq/debugfs: Add proper debugfs interface") Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent c80081b commit f610c9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/irq/irqdomain.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,8 +1667,7 @@ static void debugfs_add_domain_dir(struct irq_domain *d)
16671667

16681668
static void debugfs_remove_domain_dir(struct irq_domain *d)
16691669
{
1670-
if (d->debugfs_file)
1671-
debugfs_remove(d->debugfs_file);
1670+
debugfs_remove(d->debugfs_file);
16721671
}
16731672

16741673
void __init irq_domain_debugfs_init(struct dentry *root)

0 commit comments

Comments
 (0)