From: jsg Date: Mon, 5 Aug 2024 02:50:36 +0000 (+0000) Subject: drm/amd/amdgpu: Fix uninitialized variable warnings X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cd8dd4c7b9a43be9f6ff9b967ada5d62714de0a3;p=openbsd drm/amd/amdgpu: Fix uninitialized variable warnings From Ma Ke e150f0171c0c0c45a373a658358c51c940ed4fd9 in linux-6.6.y/6.6.44 df65aabef3c0327c23b840ab5520150df4db6b5f in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c b/sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c index ae29620b1ea..a7cef33a2a3 100644 --- a/sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c +++ b/sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c @@ -92,7 +92,7 @@ static int smu_v13_0_10_mode2_suspend_ip(struct amdgpu_device *adev) adev->ip_blocks[i].status.hw = false; } - return r; + return 0; } static int