Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4094026ybi; Fri, 19 Jul 2019 14:53:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8vB6T6q28Ifhia/WmTLnw4uqD1OiwVp+Lg5531P3hVZpI2CtusFcKAyF7NZDCt1Pkxr59 X-Received: by 2002:a63:c70d:: with SMTP id n13mr55630692pgg.171.1563573181219; Fri, 19 Jul 2019 14:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563573181; cv=none; d=google.com; s=arc-20160816; b=bzu/GcLAiwDkcaCODNm3o2nYTHqx+34UEdsm7JFdPbCfjeiFbLqS15JmDU7pqQizrx rLwfLhKRHsrjsJ5DRv/2oI1mnb0I4k147uhx/0zAIFeBUu0WvnoBHY1RA1htWuUiheE+ ND/AiJD7uL+KBYx51u89kRi4evbiZFMDwuPv996yjOQBBLQJ8iHYs88rqP3VewjozKZI 0xgUbtLGX4HmnAlnHNzhVTkKW6Wubm4Xx/ckuHkAVFUs12P0zR6oqnwxM/ddBzbnh23F RmR0UAmV7MtATnhlU21M7+D2Krmm1WtacySOdwh9YIXr2qtaq9jYwh+CVU5GlJUpJXln 13mQ== 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=LgCwfeb0qUeGvteEDqnpqo5FEOvlxmkPiJSvQEyBpA4=; b=FASS1N60LqkgueYmw0YWS8HR3cDEga6d8abp0m+jYJL4pqKMN+siczbuaphCcw4vIs xrVDS1mjxfFnFUuKd3mno3vY/wX12O9MWOXlDUKtcBSAQMqE6ma6ADoz7elmFnQOOY5P XcJ9D9CGFHCS7qpOL2Cm0NqUCX9sQqAMkLrl2pK7+wAL6ntFR1dJPqO1t26DQbv5rLTk WRSAhme2KEnSks2T6Gk9VxgQ8uKsA2pdgWeKk50oYmETwzxMtdeQpi0cFYRSWNEUS7J3 hkA6Ks49ws1XO1q7389Rpiv+RXw0PVelfRnOEvnoKfDrHrOItHQHfpaiLusI+oFwfvve HHWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LtGE7qyz; 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 61si1204190plq.157.2019.07.19.14.52.45; Fri, 19 Jul 2019 14:53:01 -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=LtGE7qyz; 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 S1732126AbfGSSqO (ORCPT + 99 others); Fri, 19 Jul 2019 14:46:14 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42278 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727618AbfGSSqO (ORCPT ); Fri, 19 Jul 2019 14:46:14 -0400 Received: by mail-pf1-f196.google.com with SMTP id q10so14541847pff.9 for ; Fri, 19 Jul 2019 11:46:13 -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=LgCwfeb0qUeGvteEDqnpqo5FEOvlxmkPiJSvQEyBpA4=; b=LtGE7qyzqvqQis+0QWaAc6EydmIRM2jL00m9b+Go8yQAU7Lt9OzQe2emBMW8bIJ5D6 YHIGHKqaOCDJ36TRTari/GqdWkzG0KYvhYZ6PntA3qeQ5EIVPqsACyM1fcQPL8TcrUCR Y+r7tmV91mI67L1Is2NyEazqRwqS2xr+0GGD8+3PC/OzLtth1DC9mwH4R3oiGKj2k8HP 4AMyHclQbhR2qTQYqNVAYYBJu+aiOq+rUzmMuGOSESv+55R94I6VbBbZqbkXW4CuaeVR b5pIhP6P58n83e/wWatxPwFjXc2PiFBBYFsPBccsetuOybLQETZMdtYJPwOXAoBIYXky KxeA== 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=LgCwfeb0qUeGvteEDqnpqo5FEOvlxmkPiJSvQEyBpA4=; b=cMrklkrA5+FRYFR/+LMu6JGlimW8Gq/wlkxGqLFaz1Jy3qBTLaSSlHz/lAPTV6vDDI oH3ou99qfi0LMZbn9kL1AyaFjASHe2Hm9Q2EHRFGrdiZ6CVMzbOKrNFyX0RRRpF7gp22 Pap8chabzuSyK4oaOw7HEZ8gVNx9+SWQsBgsEuGpLEqyo0l6aTU1vno+FFZ46GVOAZOO AATv9L4OUymFU9DBJ+x5+UcLi5eBMccO8MWCTKG3O3tDnQazxOdiP7S1Y9Kybbr7dJeJ 72/NAbe9/fB3C87slGxHMcZXUjwSscEvel9u3oaRtdHHxEQWS1iWpw7cJfhCj4LKM6JB 6q0w== X-Gm-Message-State: APjAAAW2N/dshWOSC1IPJfFK0TFA9R8fGtsKN7PP+PRGZBki+wRnuOa6 QIvNaibRwHl30jF7dsjKmJU= X-Received: by 2002:a63:188:: with SMTP id 130mr54815202pgb.231.1563561973341; Fri, 19 Jul 2019 11:46:13 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id g18sm55976033pgm.9.2019.07.19.11.46.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jul 2019 11:46:12 -0700 (PDT) Date: Sat, 20 Jul 2019 00:16:06 +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] rqchip/stm32: Remove unneeded call to kfree Message-ID: <20190719184606.GA4701@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 --- 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