From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Christian_K=c3=b6nig?= Subject: Re: [PATCH 0/8] drm/amdgpu: Fine-tuning for three function implementations Date: Mon, 18 Jul 2016 09:41:38 +0200 Message-ID: <578C8832.6040003@amd.com> References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <558FB427.80103@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: SF Markus Elfring , dri-devel@lists.freedesktop.org, David Airlie , Alex Deucher Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall List-Id: dri-devel@lists.freedesktop.org Am 16.07.2016 um 16:33 schrieb SF Markus Elfring: > From: Markus Elfring > Date: Sat, 16 Jul 2016 16:23:21 +0200 > > Further update suggestions were taken into account after patches > were applied from static source code analysis. Small coding style nit pick on patch #7: > - } > + } else > + temp_storage =3D NULL; When an "if" has "{" and "}" the else should also use them even when it= =20 is only one line. With that fixed the whole series is Reviewed-by: Christian K=C3=B6nig=20 , but as Walter Harms pointed out as well=20 there are a couple of other things we could make more as well. Regards, Christian. > > Markus Elfring (8): > Delete an unnecessary check before drm_gem_object_unreference_unlo= cked() > Delete unnecessary checks before the function call "kfree" > One function call less in amdgpu_cgs_acpi_eval_object() after erro= r detection > Delete a variable in amdgpu_cgs_acpi_eval_object() > Delete an unnecessary variable initialisation in amdgpu_cgs_acpi_e= val_object() > Change assignment for a variable in amdgpu_cgs_acpi_eval_object() > Change assignment for a buffer variable in phm_dispatch_table() > Delete an unnecessary variable initialisation in phm_dispatch_tabl= e() > > drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 28 ++++++++++-= ----------- > drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 +--- > .../gpu/drm/amd/powerplay/hwmgr/functiontables.c | 12 ++++------ > 3 files changed, 19 insertions(+), 25 deletions(-) >