diff options
author | Victor Zhao <Victor.Zhao@amd.com> | 2021-04-27 17:52:56 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-29 00:02:40 -0400 |
commit | 4b12ee6f426e5e36396501a58f3a1af5b92a7e06 (patch) | |
tree | 51c0f0cfb0657de845def3900f9a2bc22f261887 /drivers | |
parent | 3cbae5abfa8ebc8bc2b445dbe392b6987cd15483 (diff) | |
download | linux-stable-4b12ee6f426e5e36396501a58f3a1af5b92a7e06.tar.gz linux-stable-4b12ee6f426e5e36396501a58f3a1af5b92a7e06.tar.bz2 linux-stable-4b12ee6f426e5e36396501a58f3a1af5b92a7e06.zip |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index 9a2f811450ed..4fbae20839b7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -1399,7 +1399,7 @@ int amdgpu_display_suspend_helper(struct amdgpu_device *adev) } } } - return r; + return 0; } int amdgpu_display_resume_helper(struct amdgpu_device *adev) |