Received: by 10.223.148.5 with SMTP id 5csp7703135wrq; Thu, 18 Jan 2018 08:32:13 -0800 (PST) X-Google-Smtp-Source: ACJfBosVGIJubxeA7ryy0XpNAyV8w9lIoiX0kJlq1BDj3mhymZdQUNf+FIVK2M1h3BjwpenEC8ji X-Received: by 2002:a17:902:7517:: with SMTP id i23-v6mr56015pll.219.1516293133636; Thu, 18 Jan 2018 08:32:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516293133; cv=none; d=google.com; s=arc-20160816; b=AdV03a2E3/H8cHa0KgtZddqAx8PDQI8eH7+/nxO4g+dHIk1i+CKx1sGfcY9FR5xsqW ddlM5bky3P51sXPqu41qe0bZG3fXNB+tMYAz7g/O9A8o/E9Mi/KY0XRlRNFpH+vI5+jL kQA3aeFbxzAHrhqLJieU4BFnHpOPg5jT+O3gVcxF7t1nIcFUdnbyFDDyc2ZH0w9uCMav zlppG7oij0dcGaDMcUbJCdJEhYqsXRe118YZZLcDT9FvO5FUEAtIFNqs4m16g+aVEETG Ohgqve8wTfECLiIkdLpg0yMFBiq0JSlIdBb0siWRaHTuh92Mdr15DXBfmCsX6kS6Zgrx I2Tw== 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=wLu41FwJRPO7D9aFGZ42BjQZcXzVIy+ihTSj60pluYg=; b=LQVCZzHeGAnddggVEt3WlMV2a78fMPVnbbFq/w4LlJ2c7SNVuwChGBVNMUn+1kZmGy 934gInZXqg5T6qXIkGtrRM35Hc0nD+QpD1wnixjiWOrZvyGlAzD18w9heVYfM9s2s6ac PE22AFvR6zxJZ0l5oZH5gyfz8k5KHUy43TRtFyFuQ1YK4hl88ZLq4VfmeE8+Gx5MHsgz sVEwI+KX1mvM3Z284k59r16aOpV4fW/hwLAEewdbvm7grsA16q+rH7toMwWmhTnDpHUh nF8c93zZ/sf9URhJ1Lr9azZh9vKQamdpcCUqWgjkpQE8GWfU8kjSq1LWel+fzjIjZKs3 psJw== 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 l3si2979035pgl.77.2018.01.18.08.31.59; Thu, 18 Jan 2018 08:32:13 -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 S932779AbeARQ1C (ORCPT + 99 others); Thu, 18 Jan 2018 11:27:02 -0500 Received: from mout.web.de ([217.72.192.78]:61335 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754759AbeARQ07 (ORCPT ); Thu, 18 Jan 2018 11:26:59 -0500 Received: from [192.168.1.3] ([92.228.88.14]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MhDkj-1ePEaG2WWX-00MNMT; Thu, 18 Jan 2018 17:26:49 +0100 Subject: [PATCH 4/5] irqchip/irq-gic-v3-its: Delete an error message for a failed memory allocation in two functions From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Jason Cooper , Marc Zyngier , Thomas Gleixner Cc: LKML References: Message-ID: <9a0b32f0-e498-cb5e-8786-87b13161147b@users.sourceforge.net> Date: Thu, 18 Jan 2018 17:26:48 +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:Ujet38tDUszUcwsGF7n1wyhhCrOWJrc4tCODHtiajCHHGI7DiNO WsCww8sGlXO1XscbATtJOXmo4XQiHZW1SYYYUIWTMphyuSUgFnnbIKfjOL+NqIIo44h4d3a 4JyJl58VG1dSHqCJ34GBMU1yuswvtq5G7V9ZQdebXZa0AH7dXvQ3z/kWClAzmIRI6XhEdA+ y0SWgY6ebxVVRss2khq1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:I6Aeh9Usu6c=:PHSQ0jIchv/7QgMfsDzSSP WJWERpowyocDbr81H7gWm44RMQTtLsAMqV+J0ASMbpbfH9qhYCJiZZgyiNM96HDq3MLC7KyJI DGJiN8yk5c4MDvVRrT8k5MQwKEkvrcXgTz3ecTLPf22mW1jSOiBcLtkU+P3VWkz9xvUk10M7Y rUKo7Z/VW6epoMd5pJny+dIFIA5+DGlcA1V8PZQvZHVppQqeSpJgPPU3ArautEEyAg0lOj22N EwRUnfNu7Gucb7rI0BGsdVvfnw1eOPTZ7/iwFfebyazPguuvoxL8xafVGkPBElea9cghnDeNS nh8bYwF8ck3HNzyf2UL9XtfxP1EWbeod2MGmgT/b4cU5uR4X6QB33ICH2CYbJLcEqYaSWFBIW XXwTmLPU3bzq65ZJZq/+6/SiDFISfNZEDisDcJcHWfYjk9FFQrMCjD+GA1pEwCKBhQ+A9kYij MUOc6pCcsKId8Ro22k84ohYQtQvajsU1Zo4gImLj1cXvjFwEL9nDGUL3gnMFZYT1b8sMPn9DE F9tubDEqUd2DpKIhgREvQ9Xzhl7rM4L/GhtIfIFbgiGcXEM1N4Wy5HM3l9xtGQdhBcZQGDbiS S4gS3wid3umAx5ZOK6zq3wRM+sxP2eAjZDHuXLrQ7SLizpKPYWeXkoFtGBO4jaVeT+jqntg+n PnGkozfCxtFGjNCgrSrnBig8uoGtfKCGrtoUS2ki1lchnjMrmoE07xBIR1albt1p2EXzttIz4 TYU57FzBqqPj6m6ryo0bv/GgreYfsXC+ox580/UPUIjblmcTwgEQJQjDGg4bLwIqexVNqmGbC vvooDkni3IjVL9IoiDqwOLyC9VJuxEsZ0ujBrwMOaDeYdIZV6s= 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 16:54:16 +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-gic-v3-its.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 06f025fd5726..100c3125f20e 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -3084,10 +3084,8 @@ static int its_init_vpe_domain(void) entries = roundup_pow_of_two(nr_cpu_ids); vpe_proxy.vpes = kzalloc(sizeof(*vpe_proxy.vpes) * entries, GFP_KERNEL); - if (!vpe_proxy.vpes) { - pr_err("ITS: Can't allocate GICv4 proxy device array\n"); + if (!vpe_proxy.vpes) return -ENOMEM; - } /* Use the last possible DevID */ devid = GENMASK(its->device_ids - 1, 0); @@ -3407,10 +3405,8 @@ static void __init acpi_table_parse_srat_its(void) its_srat_maps = kmalloc(count * sizeof(struct its_srat_map), GFP_KERNEL); - if (!its_srat_maps) { - pr_warn("SRAT: Failed to allocate memory for its_srat_maps!\n"); + if (!its_srat_maps) return; - } acpi_table_parse_entries(ACPI_SIG_SRAT, sizeof(struct acpi_table_srat), -- 2.15.1