mirror of https://gitee.com/openkylin/linux.git
drm/amd/display: remove unused variable 'ret' in dm_suspend()
Fix the following coccicheck warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:1574:5-8: Unneeded variable: "ret". Return "0" on line 1586 Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
43a10b15d4
commit
1c2075d401
|
@ -1571,7 +1571,6 @@ static int dm_suspend(void *handle)
|
||||||
{
|
{
|
||||||
struct amdgpu_device *adev = handle;
|
struct amdgpu_device *adev = handle;
|
||||||
struct amdgpu_display_manager *dm = &adev->dm;
|
struct amdgpu_display_manager *dm = &adev->dm;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
WARN_ON(adev->dm.cached_state);
|
WARN_ON(adev->dm.cached_state);
|
||||||
adev->dm.cached_state = drm_atomic_helper_suspend(adev->ddev);
|
adev->dm.cached_state = drm_atomic_helper_suspend(adev->ddev);
|
||||||
|
@ -1583,7 +1582,7 @@ static int dm_suspend(void *handle)
|
||||||
|
|
||||||
dc_set_power_state(dm->dc, DC_ACPI_CM_POWER_STATE_D3);
|
dc_set_power_state(dm->dc, DC_ACPI_CM_POWER_STATE_D3);
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct amdgpu_dm_connector *
|
static struct amdgpu_dm_connector *
|
||||||
|
|
Loading…
Reference in New Issue