From: Thomas Gleixner Date: Fri, 7 Jul 2017 06:57:57 +0000 (+0200) Subject: genirq/debugfs: Remove redundant NULL pointer check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f610c9d68b1a47f539b7764f4b5ce07d32fb9ae1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Thomas Gleixner --- 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)