Received: by 10.223.176.46 with SMTP id f43csp21076wra; Thu, 18 Jan 2018 13:17:08 -0800 (PST) X-Google-Smtp-Source: ACJfBotWqEMc8N0PHPtbSNvn+clcRPeUaUs3ZTPbjDe+dp99jpeyx5rv5wkE3thEbZDT++O+KMKO X-Received: by 2002:a17:902:b186:: with SMTP id s6-v6mr420015plr.70.1516310228652; Thu, 18 Jan 2018 13:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516310228; cv=none; d=google.com; s=arc-20160816; b=cmzIoNhvIYO1neaOr5V/UAm5Lz7SB0XXi/A+3ow/TDFVgVuAFAkYd1fPPeV3O0Y5Pd /dwEEuteFe2F4areY3R1xI+0w7aO6gjoRaEcRKROpNScFRY+Hxm3hHxb0/JghCWZM3d9 aO+dzEAsb03b/vWnuBwFIxhXLhYZSJLPtgJg7JrX1dY/IP3c9v8lV3M04TCAgM6mjUz9 uPAZPNn35+NCIv1jzMAsJuTPaV7kEVsEgQQhPWdvj7HEt8HpPeHsxVX075kD6jfSTnCL i+CRV6UlsWUY8aqoBYn9LYE5asrGY8jylSgvxSdPqZ66kk+mm5KEqlH5NRwsYhh35nps df7w== 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:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=DVQXlrDQdkSdwTY2WpNs7+wBccYDYeCKYOq4wpRPTOQ=; b=iMHlkzT17h8o9jh7i2YFw++hT3S0nTykbwMO7BfKIIBXNE2lVeM6GWgK2I83gQpCjh 6lf/TedjSsatskxRjYKlG+xgFx3yX/YbL8iFZu4EPHtaBabaSGElL/f3XiaP6Z/PYTuA eKY9yQ1j+CGz6hcLGfOLDTAtqySfqktsoJORb+o7+lHijFr0KPYrr4GeM6eKzgRiH8LE SKlLkAg6ZCs/3PCcm7vrF6bxmjDLIBrxjvfi6zVJ++6C8gcCkpAoV8BLj3si0eoEyZFQ 2yY/vzG+qyOfmyyzrE687J1Nei1CwjjkNOkI6PiaQTiczWcTH7sHrigJkD08taNmw7D5 a9tg== 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 r12si6745199pgp.704.2018.01.18.13.16.54; Thu, 18 Jan 2018 13:17:08 -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 S932427AbeARVOw (ORCPT + 99 others); Thu, 18 Jan 2018 16:14:52 -0500 Received: from mout.web.de ([212.227.17.11]:52122 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932171AbeARVOo (ORCPT ); Thu, 18 Jan 2018 16:14:44 -0500 Received: from [192.168.1.3] ([92.228.88.14]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MVLWc-1eKEor3N0w-00YjLY; Thu, 18 Jan 2018 22:14:31 +0100 Subject: [PATCH 1/3] irq-imx-gpcv2: Delete an error message for a failed memory allocation in imx_gpcv2_irqchip_init() From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Jason Cooper , Marc Zyngier , Shenwei Wang , Thomas Gleixner Cc: LKML References: Message-ID: <280740be-7287-0b07-1f44-964ac5a5fc54@users.sourceforge.net> Date: Thu, 18 Jan 2018 22:14:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:hsJvIWawe9QHEWUhT8GOFRfCPdgY7vMOApGFthEzI+o6rKPBKcM JDCPmECPs5LbHpi1XkzKSQYWHz0stfCTisgGcQHsD42z0dl0HivP7lP8vGJ8MfA3ykdjs2n KT2xQDELXvRkXe3j2vkiy5ssLyaI5h8XfFEFHXz2t2klOmYD6FLybJTXiPyruX4M4bP5zYI PJLjDdIxurys2G3ZRA+Sg== X-UI-Out-Filterresults: notjunk:1;V01:K0:jovbIKwuUeI=:cWG3ngv2MvFi8MzT7XYdaJ czVe9ArliH2qqlV+h+wtI6IQW8A+P8EkBbmQYEkhQknVPuNtOyZLYnYuWhhgZgvM063kQsuF4 tSvpHRqpWpi1ej5p2ttI6prk+J0WV6m4PmC2nzhKRBckcN9Acva51BBzSJlvulbs3EOHXtG2U wH+btA+fySIbdchuQ44UvFH135kb733c5S1Kvm1iFCKyUBxFlDw8DQTh8jm0kp9bXm/iuNGfs RPLgGUbT/OJeZIRtxLt5TyNRGt1h4EA0y16b81VyIGVCN+u+6e1YPImN3H+Zo+gKrA+Fol9Xt tRVKPQXoLIiOJ3yldh4b5/DA+c9cpZmSkhgNFRtBF3Evf3yJfzJFkIPBLskFyUXkIqV+uv7Wp nsuXolm+xTqNMYzrVZn/hk/nCOJHCryCj/7svCLMM1hX87gQbDl2mwN7nw40/G7Lj19VfKIXZ qCIBlMNqh5gpNhrzp/ABFt9ddaMfcJrLqeGvaALFvJ+KKWxBXrLCRlLDwl0Olsl4SMOpe/WUG tv2qvkxy2SnKGu4VhW+qAv59p/Ri/yWb7eAKq30MSVVvvHwUpIqQPYXUJSXDMoUOA3YI18yW8 Liu9bZE5ed3vhRdc/Huf+8ieTRfagtRYIbd5KldQ82R1KqT1NTx/nSRpoqEDa4DzJQsSyVR+B gCqpRDGC0ZV5ofPX0WGbOHfm7YhIzn2PpADYPd0tVfOFRb1piF+7ybbF0FvKvSlLAIa6G/8/J jF0/b0pgy7HcOnTWEZvrnrOUrxasDGWG981GNa2JfUqPwDvJFp0UtAljbb5fQYbnbxgs037+B ZEg73YFZRIVVy77ZsiYxDJqPuld1A0SIRPHq4DAkTgm6DnER+g= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Thu, 18 Jan 2018 21:23:06 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/irqchip/irq-imx-gpcv2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c index 675eda5ff2b8..f08fcbb46b1b 100644 --- a/drivers/irqchip/irq-imx-gpcv2.c +++ b/drivers/irqchip/irq-imx-gpcv2.c @@ -225,10 +225,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node, } cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL); - if (!cd) { - pr_err("kzalloc failed!\n"); + if (!cd) return -ENOMEM; - } raw_spin_lock_init(&cd->rlock); -- 2.15.1