[PATCH 0/8] drm/amdgpu: Fine-tuning for three function implementations

From: SF Markus Elfring
Date: Sat Jul 16 2016 - 10:33:46 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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.

Markus Elfring (8):
Delete an unnecessary check before drm_gem_object_unreference_unlocked()
Delete unnecessary checks before the function call "kfree"
One function call less in amdgpu_cgs_acpi_eval_object() after error detection
Delete a variable in amdgpu_cgs_acpi_eval_object()
Delete an unnecessary variable initialisation in amdgpu_cgs_acpi_eval_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_table()

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(-)

--
2.9.1