Skip to contentSkip to conversation

irqchip/stm32: Remove unneeded call to kfree

PATCH New Hariprasad Kelam 1 participant 1 message Jul 20, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 irqchip/stm32: Remove unneeded call to kfree

Memory allocated by devm_ alloc will be freed upon device detachment. So we may not require free memory.

---
v2: correct the subject line

 drivers/irqchip/irq-stm32-exti.c | 2 --
 1 file changed, 2 deletions(-)
drivers/irqchip/irq-stm32-exti.c +0 -2
index e00f2fa..46ec0af 100644
@@ -779,8 +779,6 @@ static int __init stm32_exti_init(const struct stm32_exti_drv_data *drv_data,
 	irq_domain_remove(domain);
 out_unmap:
 	iounmap(host_data->base);
-	kfree(host_data->chips_data);
-	kfree(host_data);
 	return ret;
 }
 
Signature · 7 lines
2.7.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel