diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-07-12 03:48:27 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-07-12 03:48:27 +0000 |
commit | 3a19f6284fcd7d2b8ebd39de2e541d5815a8bc53 (patch) | |
tree | 4054ee3975666a2c1806693fbd2115fdf67bdbef /sys/dev | |
parent | f5635f4ff67827b7d2694ed5044e824fd0b5bea9 (diff) |
drm/amdgpu: Fix uninitialized variable warnings
From Ma Jun
646e13f0a65b1930a4fa838f31bf763dbb4307a3 in linux-6.6.y/6.6.39
60c448439f3b5db9431e13f7f361b4074d0e8594 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/aldebaran.c | 2 | ||||
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 |