]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit575c5db275e12a773f1e0a79d421c1ee75e53b90
treec80833146b723bb0b802c23113fe13c6eb623b50
parent4801b0acd49a1e5b2329ef93b4168a6626ffcd93
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