Received: by 10.223.176.46 with SMTP id f43csp1448733wra; Fri, 19 Jan 2018 11:42:58 -0800 (PST) X-Google-Smtp-Source: ACJfBovRFgIB9BB6W5iUOr0qtJjOFrxZQGP+8zK0IVvJlGbUzpaVVzFLFhDdIaN6CSZryjmm4AXw X-Received: by 10.101.81.5 with SMTP id f5mr39243923pgq.22.1516390978720; Fri, 19 Jan 2018 11:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516390978; cv=none; d=google.com; s=arc-20160816; b=NSADMnWu03COcoetM2z00qvlM2H2TLvmJZTc2aflNGb+gv6doCNrvBZ2R9ec8m0xBN iPPhukSwMf04D8uq43jmsxj07yjCSdSXQKZmp6t0WTWaPChZJVoBrXvcWtUs3S8YZ9sL 6424EegqIlXP8C3OxIH8VjfK0dY8PT3SJqtFcXMadKMGZHTx8rGV8KGjOIxx92TGOj7e VW+8oC+0r8gBW+yrRoGwKx/FqM5bBa7IIcILZ/Ol096ik77vx5h7EFib8hmj8XxPIxGx QOHRRbPJlRGq60S0SFzdV8Pao0uk4u7ND1eUPfbfCXD3QvNtKOeTxmdW7/DP5yk/Omk5 DY3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=WN/Oy0MI2WBjMLH9mPFJfnEkkWFNgLy+r9O5fwovOPk=; b=Vy3uXma1FJM8w8Su35dLiCq9Wx07ut/eKSF/cLTmPkgG2nJTkBN2xj1hyPBmXTUpVz yWEu9ErPmvEcsR+eu36njY2gKxZ5LVKl2Wppv4TUk3B3hEQsHRZABPXoXnUpziShBs1q kvNokLCUMgajgeuDkaIrB0Cl3efoGqNKCYlSEfXk3CmH3b5NO2ZZKtGIPKswRYhQ3GFA bg+7uC8a5L0sLz2sS6nYEOHUwtMqA9iWOcEB/PIC2KY7qf4YE+1cixm/Ik+I0KtQfb97 ToyTXtU3oOP6i0QK7t1bRsfuJcJk+F4q2LtXf7MKtHLh4iCDc4MBIubMmBtKhrmocPuX Avmg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si8882288pgt.354.2018.01.19.11.42.44; Fri, 19 Jan 2018 11:42:58 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756182AbeASTkt (ORCPT + 99 others); Fri, 19 Jan 2018 14:40:49 -0500 Received: from mout.web.de ([212.227.17.12]:57306 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755932AbeASTkn (ORCPT ); Fri, 19 Jan 2018 14:40:43 -0500 Received: from [192.168.1.3] ([78.53.251.71]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lb25F-1f5efi2sn3-00keuX; Fri, 19 Jan 2018 20:40:27 +0100 To: kernel-janitors@vger.kernel.org, Jason Cooper , Marc Zyngier , Thomas Gleixner Cc: LKML , Magnus Damm , Simon Horman From: SF Markus Elfring Subject: [PATCH] IRQ-Renesas: Delete an error message for a failed memory allocation in two functions Message-ID: <9e149a56-299f-b6e1-26f2-c6b4c4717b28@users.sourceforge.net> Date: Fri, 19 Jan 2018 20:40:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:he18qsGXXtgHF0Bd1tNN2/mmP4PdgWmMNviQJ0fUTofsBbs3R3H IOoAPiWIpPtd+cboC+kUtOeyLJTQXS1mRioxXqAzPg+9y6v2zED1K2x+hOkci8AT07styaR OYnfbUwuFus42K37BrR43A3sYDU+YkUuaZdfri952EZHzvyLeS8t9Kl81coosWsFITyR/kD O9YS/32fkhneiONXFe69w== X-UI-Out-Filterresults: notjunk:1;V01:K0:rXJsd3OTR74=:ZETOUfa1oWZLLT1GtSHLjL xIYFEGsAfOUVnUljSH+6A2r9jeIdnFmgcySFuWRmJtOlqrCUaMkZW/oLVJT9Z6zp3BUKqUVTY NCdVltP39iS/MidFVNgf/XrxtiOz4ntvdS1wyyHsIBrv1kbWejSzvRA7OQds2oHybDheLbcTl yMEPAJvUSE2lTt+QQAvIVju4zsKKhKhOihFy3UwcQOeHoDhpz5yhttwT7Vx3s1stHywbuu25f Rug6qRRGSLA8iYnxvAWd756G8DgspeebLzZgycaz9tmmtAuzT8VoHId6AT0xJxI1pw6QmkEVu lPXZx/RyOVzHmD+KUqwhevZhJOqXEMWubwxb+9wQkoMDl8AaDZPqBYtO0e+JZ/TyiMTkoCghI Zq5APTfzi9M/X/rZJcOF6hj0/95901ofhGJLNKx048LqjFD1Jkhtv4VfxpW6PbjgkUrOd2jjH ioH96hppAnNyN/+z6C1xdeiwk/JUrMqtDYMkaMCuWWZZEHZi8zLJl1sYebC80Jmg8MfFdm0Nu 57be5AheeskuJQfJfqlQ+kA3C7JI1vqjhim2LW3nT8Cuum7mq98dZR1yRTuMl22AJoeCUK160 CkT5vhrClAGswC0zf+QBk7k5LnCg5P4JzdQ/jTjNzYS1YHvVdROh5UVS8GlpbTj1pHuIzqBnX /95oXhiCWKH20ulJCAJ6BTQ8oqtbeRpr+WUukF9B7P48q7mweLAUJ05QYSpgMPfjyr9+KecAs OF627LFBl5rVZJxVnEEpgokTbg09OCV4Tcufy7oOheRiZ8TbIb9cn77JO84Xcw8A0jihZhTsC a064+rczTbVNLtfx534JK4czLtE/9GAzRPpf6MwRvOvnZeT8Mc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Fri, 19 Jan 2018 20:32:04 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/irqchip/irq-renesas-intc-irqpin.c | 4 +--- drivers/irqchip/irq-renesas-irqc.c | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c index cee59fe1321c..2a7f311b19e4 100644 --- a/drivers/irqchip/irq-renesas-intc-irqpin.c +++ b/drivers/irqchip/irq-renesas-intc-irqpin.c @@ -410,10 +410,8 @@ static int intc_irqpin_probe(struct platform_device *pdev) int k; p = devm_kzalloc(dev, sizeof(*p), GFP_KERNEL); - if (!p) { - dev_err(dev, "failed to allocate driver data\n"); + if (!p) return -ENOMEM; - } /* deal with driver instance configuration */ of_property_read_u32(dev->of_node, "sense-bitfield-width", diff --git a/drivers/irqchip/irq-renesas-irqc.c b/drivers/irqchip/irq-renesas-irqc.c index 52304b139aa4..8c2c5d92f688 100644 --- a/drivers/irqchip/irq-renesas-irqc.c +++ b/drivers/irqchip/irq-renesas-irqc.c @@ -151,7 +151,6 @@ static int irqc_probe(struct platform_device *pdev) p = kzalloc(sizeof(*p), GFP_KERNEL); if (!p) { - dev_err(&pdev->dev, "failed to allocate driver data\n"); ret = -ENOMEM; goto err0; } -- 2.15.1