[PATCH 078/103] drm/amd/display: add dpms state to DC follow up
Harry Wentland
harry.wentland at amd.com
Tue Oct 10 22:40:47 UTC 2017
From: Hersen Wu <hersenxs.wu at amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland at amd.com>
---
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.14.1
More information about the amd-gfx
mailing list