Skip to content

Commit

Permalink
genirq/debugfs: Remove redundant NULL pointer check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner committed Jul 7, 2017
1 parent c80081b commit f610c9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/irq/irqdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f610c9d

Please sign in to comment.