]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/vi: silence an uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Oct 2019 09:12:16 +0000 (12:12 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:15:00 +0000 (16:15 -0400)
commitf33cd1e86d1b4a1c12569a7dd7be837438951e98
treebdee03f2bfeddfa34e6589ecd580ffc460bb273f
parent56ea35195bd5dfeb107a7730cc03b246de592f72
drm/amdgpu/vi: silence an uninitialized variable warning

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_reset'.

Fixes: adc3e9a26007 ("drm/amdgpu: expose BACO interfaces to upper level from PP")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c