From: jsg Date: Fri, 12 Jul 2024 03:48:26 +0000 (+0000) Subject: drm/amdgpu: Fix uninitialized variable warnings X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d3daa78abe6f2badcbd1390dda05ff32967ec991;p=openbsd drm/amdgpu: Fix uninitialized variable warnings From Ma Jun 646e13f0a65b1930a4fa838f31bf763dbb4307a3 in linux-6.6.y/6.6.39 60c448439f3b5db9431e13f7f361b4074d0e8594 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/aldebaran.c b/sys/dev/pci/drm/amd/amdgpu/aldebaran.c index fa6193535d4..7fea4f0f495 100644 --- a/sys/dev/pci/drm/amd/amdgpu/aldebaran.c +++ b/sys/dev/pci/drm/amd/amdgpu/aldebaran.c @@ -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 diff --git a/sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c b/sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c index 8b8086d5c86..896c7e434d3 100644 --- a/sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c +++ b/sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c @@ -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