drm/amd/amdgpu: Fix uninitialized variable warnings
authorjsg <jsg@openbsd.org>
Mon, 5 Aug 2024 02:50:36 +0000 (02:50 +0000)
committerjsg <jsg@openbsd.org>
Mon, 5 Aug 2024 02:50:36 +0000 (02:50 +0000)
From Ma Ke
e150f0171c0c0c45a373a658358c51c940ed4fd9 in linux-6.6.y/6.6.44
df65aabef3c0327c23b840ab5520150df4db6b5f in mainline linux

sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c

index ae29620..a7cef33 100644 (file)
@@ -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