Skip to content

Commit df65aab

Browse files
Ma Kealexdeucher
authored andcommitted
drm/amd/amdgpu: Fix uninitialized variable warnings
Return 0 to avoid returning an uninitialized variable r. Cc: stable@vger.kernel.org Fixes: 230dd6b ("drm/amd/amdgpu: implement mode2 reset on smu_v13_0_10") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 6472de6)
1 parent 73048bd commit df65aab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/smu_v13_0_10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static int smu_v13_0_10_mode2_suspend_ip(struct amdgpu_device *adev)
9191
adev->ip_blocks[i].status.hw = false;
9292
}
9393

94-
return r;
94+
return 0;
9595
}
9696

9797
static int

0 commit comments

Comments
 (0)