From: jsg Date: Mon, 9 Sep 2024 08:22:35 +0000 (+0000) Subject: drm/amdgpu: Fix uninitialized variable warning in amdgpu_afmt_acr X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4fc378f72524874fa13154b260ffae8d3cfd27ea;p=openbsd drm/amdgpu: Fix uninitialized variable warning in amdgpu_afmt_acr From Ma Jun 761964b756c6e760e8af25e383b7f0a8cc473ac0 in linux-6.6.y/6.6.50 c0d6bd3cd209419cc46ac49562bef1db65d90e70 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c index a4d65973bf7..80771b1480f 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c @@ -100,6 +100,7 @@ struct amdgpu_afmt_acr amdgpu_afmt_acr(uint32_t clock) amdgpu_afmt_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000); amdgpu_afmt_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100); amdgpu_afmt_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000); + res.clock = clock; return res; }