Re: [PATCH] drm/amdgpu/vi: silence an uninitialized variable warning

2019-10-17 Thread Alex Deucher
On Thu, Oct 17, 2019 at 5:12 AM Dan Carpenter wrote: > > Smatch complains that we need to initialized "*cap" otherwise it can > lead to an uninitialized variable bug in the caller. This seems like a > reasonable warning and it doesn't hurt to silence it at least. > > drivers/gpu/drm/amd/amdgpu/vi

[PATCH] drm/amdgpu/vi: silence an uninitialized variable warning

2019-10-17 Thread Dan Carpenter
Smatch complains that we need to initialized "*cap" otherwise it can lead to an uninitialized variable bug in the caller. This seems like a reasonable warning and it doesn't hurt to silence it at least. drivers/gpu/drm/amd/amdgpu/vi.c:767 vi_asic_reset_method() error: uninitialized symbol 'baco_