Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4791424ybi; Sat, 20 Jul 2019 06:12:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS2QLexh35LkGkbWsYXVGQgQaqE4ByQvC/4XVYKB6lnztwZJkVLjDmhGJQDSCJYYULwxzS X-Received: by 2002:a17:902:1101:: with SMTP id d1mr18426854pla.212.1563628353119; Sat, 20 Jul 2019 06:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563628353; cv=none; d=google.com; s=arc-20160816; b=CuPD/GvB/L1BFB1DFE5B8mLz/YLwfCX3ySCSZTkZGDgOruL/tcpD5V+SgvB1OBbSAV i6+7gu49jTqxDHGCXK14NlTQr/32xX5zrIBxYTAG5JlEpfZxeG1Ypz4Hs+vi3f5gq99y AwJHVLFZMchsomN/BmUXAQgFrNc3kXrN1laQISdBPdfzpwHsB5gfGtSxKyZIQi8x8Lev spWtCmODkzUB4xY7B/S3PsTHR8MRbAr9XXWE7TgvDXxK6qFuYpZhR+PnOUietIm/Pfyv ++z2xP6VHNWMMH/XeSfJK8uSoxK5eoZrpyWG7dxNyLxpwfhhFMs4D+ZI5M8/dF+GmMa7 ZhDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=neC3zaA6/SjW//JOmms70Lu5HwOzIZBuLfb866mHmIU=; b=nsaVyTDeF39OqNPZvZcjDa4AFzgZqrOehYCLrXrbGpqAjhzp4LV24ni0eFm2S2nOS/ vtQY4NahK27KjmQftlSA2DDnyI6cGrGaqU8/k/W8OixTEqP133DI0hSsywNMte6widJT I5fn/V7D7HVcLyA7p8dUD98W1GdtgTCP7blgkjbejfB/DtM6W7z89iYk8WCB370g1+NH VHqLi5tzJOliQB4O13xOGNFmaDqGdrcpWDAxSMpX+N+VgQAkk4qWq/LilOIh+FmpGBGv GvY041ilx4FQ+MSiPqO6MXIoVGw+NLbGc7OHmSQQytOMVnBVXg2UFvmqOQqSRdd3q6tc WkTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZSc86vax; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v41si4527804pgn.481.2019.07.20.06.12.17; Sat, 20 Jul 2019 06:12:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZSc86vax; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725812AbfGTEGc (ORCPT + 99 others); Sat, 20 Jul 2019 00:06:32 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34698 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbfGTEGc (ORCPT ); Sat, 20 Jul 2019 00:06:32 -0400 Received: by mail-pg1-f193.google.com with SMTP id n9so9059402pgc.1 for ; Fri, 19 Jul 2019 21:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=neC3zaA6/SjW//JOmms70Lu5HwOzIZBuLfb866mHmIU=; b=ZSc86vaxfnhWiLJ1Hf8++d35zLhCzVjggsH3Oq/7mh3pJvRMu+bDvh79QMHfwaUzaH rScA1Au0eU759BXhYzcQfH91XYYCXVChYga5OzkxjC9bHApuaBTaPTahU0RjmI66VhjD BTpOHgFbYfR0E/pNPdG0MQBwtRTIGdAQi+OWgLMBtLV1ToqJnVhOLY17O0eqtizEbZyO Sp6sNZfNuBdzIp+JZJ1M3znKjBjdq+2oKMYB7oOaXwpTuMlPvUOByej2EZtW61b7qqKO IqDFtKBSFk7wVOZm4SgiONPbUQqpE5my2syp96Cos3tP8h6r8+MXdachKdkEL8UGnR3E nE4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=neC3zaA6/SjW//JOmms70Lu5HwOzIZBuLfb866mHmIU=; b=HmPQr5EO6EwQ9Adajavjr4CzyoC6dB61Mi00d1qXsT+BhnElCEB7aXHnXEr+TKoIGF aRdkMgfq5VrC/oDJwwLqw4PTApJFK5ucnG5um18Ae9MDhb3qBGjhj8Agy5dswKt4Izrg t3xpN2xm8d8TncDtr8LkgTc/MrlZdMAqNY5tkBx4FQLDxtI84hqudtRRQE3MKeX20hmx J33J0ol8Uq7OaBRMSH7hSmpYjrHiFy3hhU44sn/PTYlRqILJccOvQsi/A/sP69Ms52fQ r0EX7ruv5Fj9UcgWgaOS0XZdC5GxI/iAweCu3es1cxirkv2s12TMEGi/c8JnB9YqyLkV b1yQ== X-Gm-Message-State: APjAAAWLVZQhuePXYOR7JkYbSYjQk8GkoLZ7TW8o7/SzOli8ck2xJYFC bdUO3gk48zwf02IQcgfFRY0= X-Received: by 2002:a63:d23:: with SMTP id c35mr57533273pgl.376.1563595591261; Fri, 19 Jul 2019 21:06:31 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id z20sm53985638pfk.72.2019.07.19.21.06.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jul 2019 21:06:30 -0700 (PDT) Date: Sat, 20 Jul 2019 09:36:24 +0530 From: Hariprasad Kelam To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Maxime Coquelin , Alexandre Torgue , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [Patch v2] irqchip/stm32: Remove unneeded call to kfree Message-ID: <20190720040624.GA10625@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Memory allocated by devm_ alloc will be freed upon device detachment. So we may not require free memory. Signed-off-by: Hariprasad Kelam --- v2: correct the subject line 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