diff mbox series

[v2] irqchip/stm32: Remove unneeded call to kfree

Message ID 20190720040624.GA10625@hari-Inspiron-1545 (mailing list archive)
State New, archived
Headers show
Series [v2] irqchip/stm32: Remove unneeded call to kfree | expand

Commit Message

Hariprasad Kelam July 20, 2019, 4:06 a.m. UTC
Memory allocated by devm_ alloc will be freed upon device detachment. So
we may not require free memory.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
---
v2: correct the subject line

 drivers/irqchip/irq-stm32-exti.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index e00f2fa..46ec0af 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -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;
 }