Skip to content

Commit 4b12ee6

Browse files
Victor Zhaoalexdeucher
authored andcommitted
drm/amdgpu: fix r initial values
Sriov gets suspend of IP block <dce_virtual> failed as return value was not initialized. v2: return 0 directly to align original code semantic before this was broken out into a separate helper function instead of setting initial values Signed-off-by: Victor Zhao <Victor.Zhao@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 3cbae5a commit 4b12ee6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ int amdgpu_display_suspend_helper(struct amdgpu_device *adev)
13991399
}
14001400
}
14011401
}
1402-
return r;
1402+
return 0;
14031403
}
14041404

14051405
int amdgpu_display_resume_helper(struct amdgpu_device *adev)

0 commit comments

Comments
 (0)