]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Fix uninitialized variable warning in amdgpu_afmt_acr
authorMa Jun <Jun.Ma2@amd.com>
Wed, 24 Apr 2024 02:50:54 +0000 (10:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:44:34 +0000 (09:44 -0400)
commitc0d6bd3cd209419cc46ac49562bef1db65d90e70
treec42a1ab0f63918e6e148303de6c5da48cc4416db
parentaa463cc850c464091cb749317372b70415d3e7d9
drm/amdgpu: Fix uninitialized variable warning in amdgpu_afmt_acr

Assign value to clock to fix the warning below:
"Using uninitialized value res. Field res.clock is uninitialized"

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c