From patchwork Thu Feb 8 21:33:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10208051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 332FE60327 for ; Thu, 8 Feb 2018 21:33:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1527429441 for ; Thu, 8 Feb 2018 21:33:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 098B6296B4; Thu, 8 Feb 2018 21:33:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8B2DE29441 for ; Thu, 8 Feb 2018 21:33:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7348B6E072; Thu, 8 Feb 2018 21:33:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 026896E072; Thu, 8 Feb 2018 21:33:30 +0000 (UTC) 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 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-Language: en-US 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= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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);