[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190719184606.GA4701@hari-Inspiron-1545>
Date: Sat, 20 Jul 2019 00:16:06 +0530
From: Hariprasad Kelam <hariprasad.kelam@...il.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Jason Cooper <jason@...edaemon.net>,
Marc Zyngier <marc.zyngier@....com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...com>,
linux-kernel@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org
Subject: [PATCH] rqchip/stm32: Remove unneeded call to kfree
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@...il.com>
---
drivers/irqchip/irq-stm32-exti.c | 2 --
1 file changed, 2 deletions(-)
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;
}
--
2.7.4
Powered by blists - more mailing lists