diff options
author | Victor Zhao <Victor.Zhao@amd.com> | 2021-04-27 11:52:56 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-29 06:02:40 +0200 |
commit | 4b12ee6f426e5e36396501a58f3a1af5b92a7e06 (patch) | |
tree | 51c0f0cfb0657de845def3900f9a2bc22f261887 /drivers | |
parent | drm/amd/display: fix wrong statement in mst hpd debugfs (diff) | |
download | linux-4b12ee6f426e5e36396501a58f3a1af5b92a7e06.tar.xz linux-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) |