drm/amd/display: Remove redundant NULL check in DCE11 HWSS
authorHarry Wentland <harry.wentland@amd.com>
Thu, 23 Nov 2017 02:05:55 +0000 (21:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 16:01:00 +0000 (11:01 -0500)
We already check this a couple lines earlier.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Jordan Lazare <Jordan.Lazare@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/dce110/dce110_hw_sequencer.c

index dd83867..80d3661 100644 (file)
@@ -2017,8 +2017,7 @@ enum dc_status dce110_apply_ctx_to_hw(
                if (pipe_ctx->stream == pipe_ctx_old->stream)
                        continue;
 
-               if (pipe_ctx->stream && pipe_ctx_old->stream
-                               && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
+               if (pipe_ctx_old->stream && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
                        continue;
 
                if (pipe_ctx->top_pipe)