drm/amd/display: Both timing_sync and multisync need stream_count > 1
authorHarry Wentland <harry.wentland@amd.com>
Mon, 30 Oct 2017 19:53:40 +0000 (15:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:27 +0000 (12:47 -0500)
Previous code threw a warning about misleading indentation

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Mikita Lipski <Mikita.Lipski@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 01ec1ed..f349688 100644 (file)
@@ -913,9 +913,10 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
        }
        result = dc->hwss.apply_ctx_to_hw(dc, context);
 
-       if (context->stream_count > 1)
+       if (context->stream_count > 1) {
                enable_timing_multisync(dc, context);
                program_timing_sync(dc, context);
+       }
 
        dc_enable_stereo(dc, context, dc_streams, context->stream_count);