From: Roman Li <roman...@amd.com>

[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...@amd.com>>
Acked-by: Brian Chang <brian.ch...@amd.com>
Signed-off-by: Roman Li <roman...@amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index bc2493a2a90e..35b0d6a28726 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -9388,9 +9388,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;
 
-- 
2.25.1

Reply via email to