summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-09-09 08:22:36 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-09-09 08:22:36 +0000
commitec7d6fcb62022df3011b80bae3214ef7e5295cce (patch)
treee79f445325ebecbf6d8700e38f61a51dbaa6c850 /sys/dev/pci
parent94f94d188d097c78519ce4010b436129d5d3747f (diff)
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
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c1
1 files changed, 1 insertions, 0 deletions
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;
}