Received: by 10.223.176.5 with SMTP id f5csp2359868wra; Thu, 8 Feb 2018 12:43:24 -0800 (PST) X-Google-Smtp-Source: AH8x224+huJzIvnRKjR9MY2MZldKs4YZDvKSex9obSVg1F9aYZyha9K0EpdOwN64+rWuxO0opHPK X-Received: by 2002:a17:902:a984:: with SMTP id bh4-v6mr253996plb.95.1518122604737; Thu, 08 Feb 2018 12:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518122604; cv=none; d=google.com; s=arc-20160816; b=a5vI0gHr+b58qXJqUJq564s2cb/MUCOGqhaUQ7DrzoFcPYlWR2yfPZozn99vWq1TrN IglQHHYW1ST6PR0NOiqPpYfCQ2ubABNxjHLFYWbv17LzVq6F/baEeaIWSPr/6Br1MnGt iXa+90V0ydqTSwjYeKAw/AHulBPRAOZgLWeWYsVYBq1AdIo2q/kUYtNVhNcayvjosW44 XH4ThEchu+s1UrPeKoGEjLuHQuzxhUoS95WQPFEarLOyG6RiaXZ8R3kkXCpd1RDkzWuW Y+32MoNd50j7eik5MWSNqakBHnM7hEHImXxQ8t3pm63+OIHzZoUZE5rshlIozIbaL9pZ /0WA== 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=F008HEcB810YhDupJ4D7zxbNC3JDesWyvY4TBlLUbLA=; b=rhLiS/6Jn6OQ5JyWuhJkMdoEv9H7N/M+SeQ00HA+v22aCoqjxfTPZO5RDY4D2A8NdR urrJMarcfq2dTDy8uApNxf+Y5xE/bL6GvUlsSx4jYF+Pvxma7HiTYs5yoNdg2XHnjUAX 7YzAGXR9QEKuob+/wBMHUAFl0AbMqItJROLfQwiQbUd5tVDSyeWWRJvh7/GewkCpf0nB krqsz8itpkC4GyZK9+n4cCbzUzGYJdIf0Nlh1/VOGFlJSIpf9yfH+YM8hG+oawEnD1t0 x6RZZRzM826Q+y8qnXV2WVDtQmVU5Dd3QJlOq/jnEI3rlh415HMITYI8lVakQHYo5XFM 7k3w== 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 c2-v6si458765plb.439.2018.02.08.12.43.08; Thu, 08 Feb 2018 12:43:24 -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 S1752291AbeBHUmZ (ORCPT + 99 others); Thu, 8 Feb 2018 15:42:25 -0500 Received: from mout.web.de ([212.227.15.4]:44193 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700AbeBHUmX (ORCPT ); Thu, 8 Feb 2018 15:42:23 -0500 Received: from [192.168.1.2] ([78.49.237.151]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MSazE-1eIQ0E1FXo-00RY9m; Thu, 08 Feb 2018 21:42:10 +0100 To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , Colin Ian King , David Airlie , Eric Huang , Evan Quan , Hawking Zhang , Himanshu Jha , Junwei Zhang , Rex Zhu , Tom St Denis Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH 0/3] drm/amd/powerplay/hwmgr: Adjustments for eight function implementations Message-ID: <1e5850db-c07f-add1-919a-be29be9c553d@users.sourceforge.net> Date: Thu, 8 Feb 2018 21:42:06 +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:03CvmUbQpXQrcn9QspyHZDB4p/ht2b7kwX1fBhOlNrj1u+H1fPM 1WRcLx2gwVfbvxibHMUW0rvqXIPVE5/PO8cBq+gt/2f4jqxz1Xx93bvNsfVQXB2rQUpPf9c KTlQW73zEpmBDJ96sIbQ1r853TdxzyGOEMP5de/47fUQQftS/he/wKGJbMrCoibYrg1riMh STjWUNHqttE1cJu3ubNtQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:XOttM7E6o60=:1rlSV4bmL/dNdOan0sY1Lm 0mGedLie54XUvehCJgIUIwBKn2LEoGSi+VYqEpfarRduHkp+3OyxEMvFl2nwyQg5RWATw6RMF 1SITXbGCjyqEKyXfuZMbERbwLMrzq69tPP8cPJDL0HoOx9mi0OV2rIX+jeRZsdFIppYcv+mg/ 7M8jraid8BPH0w/lYXcoqRb4kSUI7WVBXPfWOf3gy/M9Yv5Hhq5p5x4viA6zuC/HJXRYv8Yoe AcuGjUcQbPV8QWGsa2hXXRPNnerlH4JNWi90Qm+EIx3YFQ/xNupAhBdSIU9ysy5+EvVtW7uwi 8frPbAE+VrcaRx5gsxd4E6jdadavDLk41EJqI6H1dDv0JZIQvArYheC9QP/ee2DucLkVJVAwZ hLTQStOaXA0kpDymKgDlnT0K0maGF5RZ6EL+uMraouwQWVWRGFlckEmje/p9TMtnxPR0oPAWQ PqudNZi8cSkaWkwFz8IIMoi0lm0aVmZs0etYP+esI+ai8ETTFNCek+zvcum+H8x7pWerXMRzn a7z4orMrXB/TC52KdO1CsjCTemInI325TO3Q75UN41Qk1Y+kNAV2oMk5mM2d5cZd5j/tZUA0Y 54aru31w2PEZ8ltBY9x93HCeXIl9ZcaXfCr0ddqRO7T7/crPVViTsSfX5LMc2JFuuctqTLOCP f6+u1bOm4wi2+USVfe83Yhej5mjKLQKELjQn27+TfxkEd6rzDqog2sdhXj7ZUnrSzUyFYGhQj 6LDidTTaoFz0S2eMcWvgNjmsG3JRv0JOCOef6PK+biWrWVSVPjDBuScAOUbOrMdK19Fy87h0O ICOJR3DotonX8gEv4wGm9lQXzzxa7hwAYeJtUBtJd+msabqBUE= 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 21:37:42 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in three functions Adjust layout for source code from five if statements Delete an unnecessary return statement in three functions drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 37 ++++++++++------------ drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 35 +++++++++----------- drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | 5 +-- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 4 +-- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 1 - 5 files changed, 35 insertions(+), 47 deletions(-) -- 2.16.1