From c196cbe065da1c9b5f7683af9cdd0889760151c1 Mon Sep 17 00:00:00 2001 From: Hersen Wu Date: Tue, 3 Oct 2017 16:47:02 -0400 Subject: [PATCH] drm/amd/display: add dpms state to DC follow up Signed-off-by: Hersen Wu Reviewed-by: Tony Cheng Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 92fab09843e4..4cdb855ef855 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -332,7 +332,7 @@ static void set_dither_option(struct dc_stream_state *stream, { struct bit_depth_reduction_params params; struct dc_link *link = stream->status.link; - struct pipe_ctx *pipes; + struct pipe_ctx *pipes = NULL; int i; for (i = 0; i < MAX_PIPES; i++) { @@ -344,7 +344,7 @@ static void set_dither_option(struct dc_stream_state *stream, } memset(¶ms, 0, sizeof(params)); - if (!stream) + if (!pipes) return; if (option > DITHER_OPTION_MAX) return; -- 2.30.2