Skip to content

Commit b07395d

Browse files
bjorn-helgaasalexdeucher
authored andcommitted
drm/amdgpu: remove misleading amdgpu_pmops_runtime_idle() comment
After 4020c22 ("drm/amdgpu: don't runtime suspend if there are displays attached (v3)"), "ret" is unconditionally set later before being used, so there's point in initializing it and the associated comment is no longer meaningful. Remove the comment and the unnecessary initialization. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 3c591fa commit b07395d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2791,8 +2791,7 @@ static int amdgpu_pmops_runtime_idle(struct device *dev)
27912791
{
27922792
struct drm_device *drm_dev = dev_get_drvdata(dev);
27932793
struct amdgpu_device *adev = drm_to_adev(drm_dev);
2794-
/* we don't want the main rpm_idle to call suspend - we want to autosuspend */
2795-
int ret = 1;
2794+
int ret;
27962795

27972796
if (adev->pm.rpm_mode == AMDGPU_RUNPM_NONE) {
27982797
pm_runtime_forbid(dev);

0 commit comments

Comments
 (0)