drm/amdgpu: One function call less in amdgpu_cgs_acpi_eval_object() after error detection
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 16 Jul 2016 11:43:44 +0000 (13:43 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:36:52 +0000 (14:36 -0400)
commit1a8e5f28c9cd9c5e1daa04e33cdb4a1038c2aaee
treec80833146b723bb0b802c23113fe13c6eb623b50
parent1721c69c3300f39ea63c7b551764873bb7ac83d1
drm/amdgpu: One function call less in amdgpu_cgs_acpi_eval_object() after error detection

The kfree() function was called in one case by the
amdgpu_cgs_acpi_eval_object() function during error handling
even if the passed variable "obj" contained a null pointer.

* Adjust jump targets according to the Linux coding style convention.

* Delete unnecessary initialisations for the variables "obj"
  and "params" then.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c