Received: by 10.223.176.46 with SMTP id f43csp791520wra; Sat, 20 Jan 2018 05:01:39 -0800 (PST) X-Google-Smtp-Source: AH8x22447ffzOJlGFQm9if+eZ+t8wnbsxw7mlRp3X0U8+vpB+HX/C+2HrlkRIuxgkLm6uJfvQ1C5 X-Received: by 10.101.77.140 with SMTP id p12mr1880464pgq.195.1516453299781; Sat, 20 Jan 2018 05:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516453299; cv=none; d=google.com; s=arc-20160816; b=ft6FphWvcZWDdFoam/XpJLxd4ot0/6DgCa3pXwuLxOv8PQwXz7F6QfFdL0gxZn7t+i x2PmUhpaUlWRuYSljyMomhYoY/nPi0RslnoSYrFuUuiP+TbsjYxxhwpT/MgM5EkP9G+Y IWUHrNQl8ORWspP4EAttSusZz11IZYYQ0uBga7tL/OO9QYWyJo/7Z3mbbzRy0D7Df8Is 9HSc5+uPLa+//TPhgXnkOm7SbvB278CX+QYwMQROdB8UGq+LNi7iNn5hNnZqpJ8sPJ7W qIh76hKX/3TrZNao2v0B0V3tFuBrwREPMZCdTIKnWbboA3MJVtQT3FwQOm5NgWA8fULU jhdQ== 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=iVu/k+Rj8DsimmCmTphUXrVbJxXQ1WNGUD0Bo1UFlMY=; b=RjZxNHLxfgKdgKfzR8POgKH96lWvDbMvNRk4w9Ju4caPNVMoXmhjm87wg2uKjsVnRS ktADK2PCpHWyBKnVjINlpSI8F6cLtPDfaDqwfjP8c2cHiNfDDE7N6bLQpxnfhQjPoOyW 30L2jhcajlU84nLmOFAThlM+xkscGmmk0a7kpN14W1vWiPmyeeyZree6kYUN5atFkLrb myAq59Ybl9yWwoFt7lH2MHVQv9KPBfoPNH/gLmE+FZbcjwquFPfn6Da3/ScLmQmWiLoz CfeNkZags6n+AfJcvbsaSxwct0N+Yzd0fOFMUoe6k72aCZ3wLgpwNaOCA+Oca0kypuWU ybOQ== 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 d23si4912701pgn.737.2018.01.20.05.01.25; Sat, 20 Jan 2018 05:01:39 -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 S1754051AbeATNAt (ORCPT + 99 others); Sat, 20 Jan 2018 08:00:49 -0500 Received: from mout.web.de ([217.72.192.78]:52488 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbeATNAp (ORCPT ); Sat, 20 Jan 2018 08:00:45 -0500 Received: from [192.168.1.3] ([77.182.145.92]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LwHxK-1esyWu48X0-01873N; Sat, 20 Jan 2018 14:00:23 +0100 To: iommu@lists.linux-foundation.org, David Woodhouse , =?UTF-8?B?SsO2cmcgUsO2ZGVs?= Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] Intel-IOMMU: Delete an error message for a failed memory allocation in init_dmars() Message-ID: Date: Sat, 20 Jan 2018 14:00:13 +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:mSEFerlh0ocznRU38+cWIP1orZFiIWMV1vrJSE6fP6FXXeBCstP 5985HU67RCV0r0rcmnnKcolXEC+QUCgckZ3s7IyDYDyW+p0TjmEf02Un8y6LKx6nnTl9soK m+kgiDkZbOo2p5ki4CTwdBdfTnY78EJgXLzo399003EZ3rAYmE/DLfHXiCBsXOxNPMTKjwE FAsLUAf1NDAYAwfWnKUsw== X-UI-Out-Filterresults: notjunk:1;V01:K0:TsMkNUu4zVo=:2kjlVn06TS5LpwA46tF6f2 5JYq2WkDF4q54+hd4nfETF3pqrOO09/LpwQs/L9S55D5DhKerlc5h9chmeM+opU+px+ltkEZ4 srVvbCyHr2Lydt0WUs9DpdMoTSF72ccnCbHYaaGS/9UK6r6i5DDpS36nrBzAinnzXBHd4QoC0 +Fk9DMQ1vnCrDWI3M2YeWpG7RJtTFKJ+Aiyhm8NVRq2cRK6nmwz0MNccBm3/6DnO46S3M7cLi t6mt5d2HA+YWQjJjf54rpGJd47uz/P0KE5NQbpgeq7GgguR1rbqTqqV2E5br/phHpWgEZb7c0 2J9hU71+GyI7gpfyFpmOOWfLcVnfpkBq2PD2XmSwgXpTS8PVOM1HveUEb5Qeg09CoRmBJhcw/ dweP9DzlzccpcLSdV+MtHL7mj1HZg+ymVUN5wXryTjJVULytpMb8MGZq2zT3hrHdAwKH2Vnmg 9u0dhluLV+hpXS53XRgAODaPapCuW3/e3D9icDO5QUS+o2r7T0euP+k1Nyw3uaEsEcL5F/iMw wsBPRrsb3FOq1iGRtPAaIz4dm2Q4DkS9zAuFfYTeUR1D+zAQoGqy86t/zY7Dk1f7/KGh37Kz4 GmE2JF4mqGvmAyztUg8U+Z7CRNVZx4wCPz9jvhJlO4fZAdzAdmwpMs1B45LPSNIbsz9RXbjdj vsWRNZOzhz03/OSjSdodiOp7Q0EwtjhrR4Yl/3slpEqFJoNDDMyAQAnm1ZcYc1uqbCDF71Rr+ WAEKe8DeAbUbp3t9kZD9Z8WscvyWPO6uTNeQhvxRbRzlD11yEhHUzOQNySacetdLUKhnoLm8P Hq9IApMAobsKz89LM6+qcCENorFD1OXtdRx0Xt+HN5Pa5bBh6c= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 20 Jan 2018 13:51:49 +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/iommu/intel-iommu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 4a2de34895ec..f4ba6bdf7863 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -3258,7 +3258,6 @@ static int __init init_dmars(void) g_iommus = kcalloc(g_num_of_iommus, sizeof(struct intel_iommu *), GFP_KERNEL); if (!g_iommus) { - pr_err("Allocating global iommu array failed\n"); ret = -ENOMEM; goto error; } -- 2.15.1