Received: by 10.223.148.5 with SMTP id 5csp7702781wrq; Thu, 18 Jan 2018 08:32:00 -0800 (PST) X-Google-Smtp-Source: ACJfBosO5gsFWflLRxmzxauWFNeCtUlL4TNzPSQMThZN7jTY6vo5PjMcbRChlwO9XUD4GwJXyRkl X-Received: by 10.99.61.72 with SMTP id k69mr36903768pga.337.1516293120368; Thu, 18 Jan 2018 08:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516293120; cv=none; d=google.com; s=arc-20160816; b=W7pxFtKIBFbDLtsy4/ewOC5FsOCXWGbvk/LLNtEW0Ln04+iirX6RmytUojd8fEj3VP cd65DObUTNWKwln4J16K2sR4VyCF3tDQRB7eh/K83iUcTyjZ9MB7ExFqvJuFNnOUqG41 TrA8Vy+y1rwpJVHxP+eq3IzowN2hjaIE2n/lyieNLRVh/6hpvx6dVIlV+EpLpPufYcj8 1/qTVu1BuH9cfBqFz7NiHIkkNX10QfSRX3wUTs/e8TPa4Xs+RULY+oyj0xk3T6U4g127 lWWPyInMB43JZvQexcSuw6DA9KuXiNcIEAV0TZYKsapdwA1lrKelxZ8JEoMIc5R5eU0I +ZuA== 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=p0s4vuvETYX/M9CWaT7psOS3UTdfUXLNsS+k4wTJsg0=; b=hKro+1gGKaFsr8J3NM6iXO8/JXUwWho2WvIZXlOGAp4NZip6o++IPQdxWbOlBfZ4G0 B8FepdtQx/syDYimareftzha2FHnRWA9jlAsWltL3wlkB4sxYtpyIhfiYIUD51CoWSsD i21JC+/8Hj3fT2n33KDnuJaGsRrvD68DkHwVK+m3gNgNP5J5OzrNFNrKvj4n/m10qXuA Ir9TKU8gFeDmE+KvmDDiWQrxvQ+Bu0NV5wGqpkLRfsI2wtCAhQGG1v78Q+IEfHE/u7Ii jZ4zgPyxp3oQ49hJ1TJePoIwo0PwREDjdP63eT7xMniI4/ojq1jf8SdkP3kInij7J0tx 6syQ== 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 o32-v6si14163pld.351.2018.01.18.08.31.46; Thu, 18 Jan 2018 08:32:00 -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 S933556AbeARQXK (ORCPT + 99 others); Thu, 18 Jan 2018 11:23:10 -0500 Received: from mout.web.de ([212.227.17.11]:60086 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933388AbeARQXG (ORCPT ); Thu, 18 Jan 2018 11:23:06 -0500 Received: from [192.168.1.3] ([92.228.88.14]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MMEvB-1ekC7j1TqP-0080Sz; Thu, 18 Jan 2018 17:22:58 +0100 Subject: [PATCH 1/5] irqchip/irq-gic-v2m: Delete an error message for a failed memory allocation in gicv2m_init_one() From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Jason Cooper , Marc Zyngier , Thomas Gleixner Cc: LKML References: Message-ID: Date: Thu, 18 Jan 2018 17:22:57 +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:4dN8TJNW5i5AlhwUHREtYAd04RDjOC9BGjdrViqcqdKHdgyI+kP 5bdDnf0/nDyOOs0pMAOYsQN8swrVEwLcDQU+UW9njX3y7mmI7BkPSytu8QYed7Qnl54HY/s cZBtprG7zVFTNREH+XuV5RAcQj4II2dmtxCZqw+KZmeaUnEKqNj+QG95WNXRymimN848AkI fFLXr+NV2QqeTfP06/uGA== X-UI-Out-Filterresults: notjunk:1;V01:K0:U/JJq5NqROk=:HegIBJcT/T4v48yC3N+EPh XxqdUcYrChXoT30CfMYd5ZD9QgdbI1f9kubtTDljjttiC6A6yu+8woeH7V8musYlMRlgphlaV Wlqsg09OSk8SSqSadyLeizTptbvHIvO0jMOUcu/k3ajLnXbrlFuFmqM7uQLpZgoGJp00cP7WW /YwCjsRcMist1AjF4xcwtZmGSuPLJ0LwKT+mUK6Vnr/BhJmb3mlGhVLJwjgBQ1quYHsKS8SeQ PEg1wkdZf2CcgiPokVjPuJPp+3RFAsVAVo7h8UCOFs/jzbdULuw1+HDykrmgP4frxgmv8wBRs AD7RPZGXRO+AOrsb3b5UDBG6N/QCAuWNBJSJA4lg1ejdJRff1CiSbHKbn0Lq+2f+a/S0eoclk +Blo28FcAV3KHgk48n6xSqZh9wGR76hHo1E17lnbaY7mfcG5cucpJ6m0GYDrl+olt3Oo6Ur1z cUx6luSudzgjw2tT5W0eX/bwXVkWQFddMYwmEdSD4onzJkm08OFfDYPek7vtDK/KLIVFVHxe+ laVQrt+WEYBAzqIh6TBYNCJwhQvd8zWPfsPOnieBzwcWVtPufro81DfiOU2alkxKZhsiJEwez Ci9+TRz/vYATW9/pBFXzookppbrwbuMEDmDD9V4YK2I/2LJ/uR9tVldBFQfV4KS/7G9ZEB/Tn yZTXHqYLCbFcrf4qfOyVRZ66EQkkMEgCOT7wiGHoqGPuFuRALupK5TN9NRxNMpPFtuMPzRVSD P0TheUbHqGXkOCWmhxKnnMRY1KCNCM7aX4FQmuwW2iw/ptbVt9z4YB4ZeaaGicKaQyq4IOa40 lWhLYlYfBCHDyr2rhmlq31d1GNEZbbct8Ss81k2frDLu9MI5pk= 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 15:44:01 +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-gic-v2m.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c index 993a8426a453..b795fefafb12 100644 --- a/drivers/irqchip/irq-gic-v2m.c +++ b/drivers/irqchip/irq-gic-v2m.c @@ -309,10 +309,8 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode, struct v2m_data *v2m; v2m = kzalloc(sizeof(struct v2m_data), GFP_KERNEL); - if (!v2m) { - pr_err("Failed to allocate struct v2m_data.\n"); + if (!v2m) return -ENOMEM; - } INIT_LIST_HEAD(&v2m->entry); v2m->fwnode = fwnode; -- 2.15.1