Re: [PATCH 1/1] drm/amdgpu: initialize amdgpu_cgs_acpi_eval_object result value

2016-06-20 Thread Alex Deucher
On Sat, Jun 18, 2016 at 4:55 PM, Nicolas Iooss wrote: > amdgpu_cgs_acpi_eval_object() returned the value of variable "result" > without initializing it first. > > This bug has been found by compiling the kernel with clang. The > compiler complained: > > drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c

[PATCH 1/1] drm/amdgpu: initialize amdgpu_cgs_acpi_eval_object result value

2016-06-18 Thread Nicolas Iooss
amdgpu_cgs_acpi_eval_object() returned the value of variable "result" without initializing it first. This bug has been found by compiling the kernel with clang. The compiler complained: drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:972:14: error: variable 'result' is used uninitialized wheneve