diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-09-09 08:31:20 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-09-09 08:31:20 +0000 |
commit | 1e3e36b4bd84b6d6bfd1fa8af38df7fb680257b8 (patch) | |
tree | e4966aa8f0bc7dffc62b61814e4ed87c49507480 /sys | |
parent | 9cdf9e4f7f15c6a481e3ce3bd8192bfcf76f7e76 (diff) |
drm/amd/pm: fix uninitialized variable warning
From Jesse Zhang
fc0cb02efdfbf8f913417bb06ac16a1a985523e7 in linux-6.6.y/6.6.50
7c836905520703dbc8b938993b6d4d718bc739f3 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c b/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c index d5aebe1c40b..68cc71ecf69 100644 --- a/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c +++ b/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c @@ -99,7 +99,7 @@ static void pp_swctf_delayed_work_handler(struct work_struct *work) struct amdgpu_device *adev = hwmgr->adev; struct amdgpu_dpm_thermal *range = &adev->pm.dpm.thermal; - uint32_t gpu_temperature, size; + uint32_t gpu_temperature, size = sizeof(gpu_temperature); int ret; /* |