]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: delete duplicated code.
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 20 Oct 2017 06:52:43 +0000 (14:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:33:19 +0000 (16:33 -0500)
the variable ref_clock was assigned same
value twice in same function.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c

index f2b72c7c6857e66a5a4b14d216973c5c1ea8aa1a..85d2149b9dbeef43bb6e9ae3e54ae0c3240d74ec 100644 (file)
@@ -948,7 +948,6 @@ static int amdgpu_cgs_get_active_displays_info(struct cgs_device *cgs_device,
                                                                (amdgpu_crtc->v_border * 2);
                                        mode_info->vblank_time_us = vblank_lines * line_time_us;
                                        mode_info->refresh_rate = drm_mode_vrefresh(&amdgpu_crtc->hw_mode);
-                                       mode_info->ref_clock = adev->clock.spll.reference_freq;
                                        mode_info = NULL;
                                }
                        }
@@ -958,7 +957,6 @@ static int amdgpu_cgs_get_active_displays_info(struct cgs_device *cgs_device,
                if (mode_info != NULL) {
                        mode_info->vblank_time_us = adev->pm.pm_display_cfg.min_vblank_time;
                        mode_info->refresh_rate = adev->pm.pm_display_cfg.vrefresh;
-                       mode_info->ref_clock = adev->clock.spll.reference_freq;
                }
        }
        return 0;