drm/amd/display: Remove redundant check in atomic_check
authorRoman Li <roman.li@amd.com>
Thu, 11 Aug 2022 14:51:19 +0000 (10:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:35:17 +0000 (13:35 -0400)
[Why]
We have 2 back-to-back checks for skipping connectors.
Logically one of them will do the job.

[How]
Remove redundant check.

Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 2412dc6..b0a5924 100644 (file)
@@ -9380,9 +9380,6 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
                struct dm_connector_state *dm_new_con_state = to_dm_connector_state(new_con_state);
 
                /* Skip connectors that are disabled or part of modeset already. */
-               if (!old_con_state->crtc && !new_con_state->crtc)
-                       continue;
-
                if (!new_con_state->crtc)
                        continue;