mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
MIPS: SGI-IP27: Delete an unnecessary check before kfree() in hub_domain_free()
It can be known that the function “kfree” performs a null pointer check for its input parameter. It is therefore not needed to repeat such a check before its call. Thus remove a redundant pointer check. The source code was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
01557e349c
commit
b9ace0647f
@@ -165,7 +165,7 @@ static void hub_domain_free(struct irq_domain *domain,
|
||||
return;
|
||||
|
||||
irqd = irq_domain_get_irq_data(domain, virq);
|
||||
if (irqd && irqd->chip_data)
|
||||
if (irqd)
|
||||
kfree(irqd->chip_data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user