mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
drm/amd/display: Drop ret variable from dm_suspend()
The `ret` variable in dm_suspend() doesn't get set and is just used to return 0. Drop the needless declaration. Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
20ea047768
commit
65890cad2e
|
|
@ -3145,7 +3145,6 @@ static int dm_suspend(struct amdgpu_ip_block *ip_block)
|
|||
{
|
||||
struct amdgpu_device *adev = ip_block->adev;
|
||||
struct amdgpu_display_manager *dm = &adev->dm;
|
||||
int ret = 0;
|
||||
|
||||
if (amdgpu_in_reset(adev)) {
|
||||
mutex_lock(&dm->dc_lock);
|
||||
|
|
@ -3163,7 +3162,7 @@ static int dm_suspend(struct amdgpu_ip_block *ip_block)
|
|||
|
||||
hpd_rx_irq_work_suspend(dm);
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
WARN_ON(adev->dm.cached_state);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user