Commit 534e3ea6 authored by Alex Deucher's avatar Alex Deucher
Browse files

Revert "drm/amd/display: fix unused variable warning"



This reverts commit 4c3a3292.

Bhawan's fix is better (less ifdefs), so revert this and apply Bhawan's.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4c3a3292
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -5374,9 +5374,7 @@ static inline int dm_set_vblank(struct drm_crtc *crtc, bool enable)
	struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc);
	struct amdgpu_device *adev = drm_to_adev(crtc->dev);
	struct dm_crtc_state *acrtc_state = to_dm_crtc_state(crtc->state);
#if defined(CONFIG_DRM_AMD_DC_DCN)
	struct amdgpu_display_manager *dm = &adev->dm;
#endif
	int rc = 0;

	if (enable) {