drm/amd/display: remove early break in interdependent_lock
authorRoman Li <roman.li@amd.com>
Thu, 30 Jan 2020 20:43:07 +0000 (15:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:37 +0000 (15:04 -0500)
[Why]
The break in apply_ctx_interdependent_lock() may potentially
lead to early break from the loop leaving update plane unlocked

[How]
Remove break

Signed-off-by: Roman Li <roman.li@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 2208282ea6cb92317e80b05d97ebb5ef34e7ff43..7fdd82b7708afe8f11461b847a9aa29b8c4ee904 100644 (file)
@@ -778,7 +778,6 @@ void apply_ctx_interdependent_lock(struct dc *dc, struct dc_state *context, stru
                                if (!pipe_ctx->top_pipe &&
                                        (pipe_ctx->plane_state || old_pipe_ctx->plane_state))
                                        dc->hwss.pipe_control_lock(dc, pipe_ctx, lock);
-                               break;
                        }
                }
        }