From: Harry Wentland Date: Thu, 23 Nov 2017 02:05:55 +0000 (-0500) Subject: drm/amd/display: Remove redundant NULL check in DCE11 HWSS X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5b92d9d409e742ca09a4cb924e3f781eddbf7d81;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Remove redundant NULL check in DCE11 HWSS We already check this a couple lines earlier. Signed-off-by: Harry Wentland Reviewed-by: Jordan Lazare Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index dd8386778361..80d36610c302 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -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)