Received: by 10.223.176.5 with SMTP id f5csp2406575wra; Thu, 8 Feb 2018 13:35:27 -0800 (PST) X-Google-Smtp-Source: AH8x224DK3Xzj6+Xa1LYk2TlmLBIhFiaLU7jrN1W0rG+9FLNBT0pR2HUqSvK2U86DUcdHfJ5zhWG X-Received: by 10.99.121.129 with SMTP id u123mr443879pgc.263.1518125727040; Thu, 08 Feb 2018 13:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518125727; cv=none; d=google.com; s=arc-20160816; b=DtTUYrxau4zhFwfX9SYmp0pbKyVlFh2kZJSlr1APwhFwh8/FvnhsucLeW69+iZ4Iw1 5vFsMmixlT9VFd9Vialy3VYt8PJC4QkX6SyYf2c4Y6CfdV1akl29o71+DJcK4dkr1PkU VNCq/5aUfT9Ew8PZfFZjK6zEDvHmfszMdIlWoHRwyOBuKFAujIBpu9pKYwsPpBKyxqhS 9qB31C6bASEv06HM3wZbr0a3AQ8BGbhDmCFQmiF0UQXrvZtmwykSdX/Hg2rsUR2sMYfw lROl3v5LEHV88M5dj1TEQXtQJsfKT6GiWohbDQg12uqTtWXIxIVIbutwT7qjmGLNbIhC zV0w== 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=bsjJiE9nnzo8+s7GjBcDzCApK5LRxUHsVMEX3Z+EDy8=; b=J8ce44zRY1U+dvmhp+kyXGxalRc9I3hx/Zl+KiRYbTCuI5DATljCgk+zT/FpqIYhb0 OJalV+U6Gx/dyTj28jtFs61C8V4oGSEt2v46gNweDXVFEiUjUUuMBe3AtAEV8tXP4klG XiyH4o492tHVG86Ex3SoddbS1TCdysx75Rb+t86GvyGT5jH3KSY4C+2oMMxEgdu0Vgg6 CwrS6oBr/qa+g8Cf2KA/r5mp93Nq1C5scUgahuLIx9Q4a+Y/lb1Ii1VZTmFRXKTwb1ht TSGHIdlxUtbZNi/WJow5Lf5W73RjTPC+m7OoWM18Yk/fK82lDV+q7MBN546lobW4IH9/ PBrQ== 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 2-v6si511024plc.784.2018.02.08.13.35.04; Thu, 08 Feb 2018 13:35:26 -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 S1752488AbeBHVde (ORCPT + 99 others); Thu, 8 Feb 2018 16:33:34 -0500 Received: from mout.web.de ([212.227.15.3]:33019 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbeBHVdd (ORCPT ); Thu, 8 Feb 2018 16:33:33 -0500 Received: from [192.168.1.2] ([78.49.237.151]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lp9kK-1fDTwe3cCi-00ewuY; Thu, 08 Feb 2018 22:33:24 +0100 To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Airlie , Oded Gabbay Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] drm/amdkfd: Delete an error message for a failed memory allocation in kfd_topology_init() Message-ID: <94b486c9-92ce-dae8-3d5e-db1943fc0119@users.sourceforge.net> Date: Thu, 8 Feb 2018 22:33:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Uf7LDAH5bPtdWOJi82TF3e+pr53gsO5mg6SEJzBYx6CK3bzhKry Z5BI+SrwgTTAjGYAmXI0G9fk2bEBzFtcBWxBofpEMY8jdnQqZGXUCLAxrudwbnqR7vuPSZo bDTRmrgem/VKFZRJ3Gsf6chsfMftd79fjwB5GHqe1UOdbbIo5Xvg0SZAlrKuyRheYBCXB3d zlBsT8DdtH2fJZF7Ed2bQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:mRWBEQgq1Y0=:J4fe1VyT6rPp0nMU8vqZFp ki8BE05Vkl844Fo/6mnxts0MbN2SRrV/2FXNAInWrkIgw7buOwXA/kUpT1UMGCZWHn2ZoYuQ7 yw1xgGw976bmlFQq+lzriW9+0rpyw9vbLmACbbbVV44gSmeD5VEQJmDUXF0ir6cAtNoz1fb8l Rsj8J7TN2x1NAf86rQ4ZorvOyU8ZOEW+kimzlTDR8vNOLE7615a9r94PaC5uTkBZWyMfu7SdB RXViMOEixhgGcej2bXtQM9kliNDJ88nbvJ3VWMOy677Xfd5GdS4DODQ/NFlG/ULAhdwhKSNwN 7Apqd5C4WNpM14cUEkJPjXlyiCXi6ZbgrZs6IuYb4Mkeb6bBxZAbublw5NMTG90dnjqWvjMlw OJagOP38DWKGnTKqEKKklQ0fo/Wxc+xv/jLeU84K5w1wTUeo1IhD0zpvj9YaiRJpQhTaJublQ XiCedaylfGrW4a7zWS/yUYGofnZ1NvIukF9lzxKjcQdvCGzSOB2sChYexjZ/tR5aGecBRt/gn C6VU0PReUK3KWNZWwohuL442FTpoaOvKwlPv0T8zRqJ4o2koaW5vLO7aG5chwxaoEgKDdVLGq QapISL2B9XU0V7jyGfTvjJ8DKgAGZozDoiIun6j1Xh4YVAzytcBI3mZBvVLzPKgyCqipW6J7P IzbOBORVBYMGUCfroUyVR6v2ZPBAnoz0mWUS7Ml5oNEfQf9v2kVQMouPNzg/Ml12JV08sA5OX /aYgWCq424Xf33UJsujt2XNqaztXKPmyOP0/IVQQ7v6+EkroQEDVuqswVFGnXWY2cP53I/VHt oJoWlWYzf78GIRQYa6JfGC7IhnevfBDdgmg9LLzSny2Dwru8Uw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Thu, 8 Feb 2018 22:23:57 +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/gpu/drm/amd/amdkfd/kfd_topology.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c index 19ce59028d6b..610e3d4ac575 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c @@ -1019,7 +1019,6 @@ int kfd_topology_init(void) crat_image = kmalloc(image_size, GFP_KERNEL); if (!crat_image) { ret = -ENOMEM; - pr_err("No memory for allocating CRAT image\n"); goto err; } ret = kfd_topology_get_crat_acpi(crat_image, &image_size); -- 2.16.1