Skip to content
Commit ea0d5e5d authored by Dan Carpenter's avatar Dan Carpenter Committed by Paul Gortmaker
Browse files

drm/amdgpu/vi: silence an uninitialized variable warning



commit 4ff17a1d upstream.

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: 425db255 ("drm/amdgpu: expose BACO interfaces to upper level from PP")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent cb8580d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment