mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 06:06:40 +07:00
genirq/debugfs: Remove redundant NULL pointer check
debugfs_remove() can be called with a NULL pointer.
Fixes: 087cdfb662
("genirq/debugfs: Add proper debugfs interface")
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
c80081b920
commit
f610c9d68b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user