drm/amdgpu: Fix uninitialized variable warnings
authorjsg <jsg@openbsd.org>
Fri, 12 Jul 2024 03:48:26 +0000 (03:48 +0000)
committerjsg <jsg@openbsd.org>
Fri, 12 Jul 2024 03:48:26 +0000 (03:48 +0000)
From Ma Jun
646e13f0a65b1930a4fa838f31bf763dbb4307a3 in linux-6.6.y/6.6.39
60c448439f3b5db9431e13f7f361b4074d0e8594 in mainline linux

sys/dev/pci/drm/amd/amdgpu/aldebaran.c
sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c

index fa61935..7fea4f0 100644 (file)
@@ -100,7 +100,7 @@ static int aldebaran_mode2_suspend_ip(struct amdgpu_device *adev)
                adev->ip_blocks[i].status.hw = false;
        }
 
-       return r;
+       return 0;
 }
 
 static int
index 8b8086d..896c7e4 100644 (file)
@@ -93,7 +93,7 @@ static int sienna_cichlid_mode2_suspend_ip(struct amdgpu_device *adev)
                adev->ip_blocks[i].status.hw = false;
        }
 
-       return r;
+       return 0;
 }
 
 static int