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
This commit is contained in:
Victor Zhao 2021-04-27 17:52:56 +08:00 committed by Alex Deucher
parent 3cbae5abfa
commit 4b12ee6f42
1 changed files with 1 additions and 1 deletions

View File

@ -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)