summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn10
diff options
context:
space:
mode:
authorLeo (Sunpeng) Li2017-11-08 21:30:19 +0100
committerAlex Deucher2017-12-06 18:47:46 +0100
commit671b00e26c6ca40f90789b0af59fafd44a096be9 (patch)
tree0f621dc93b7a8a5270d9ca6b78aa15eed05d5cbf /drivers/gpu/drm/amd/display/dc/dcn10
parentdrm/amd/display: Fix Linux after optimize frontend programming (diff)
downloadkernel-qcow2-linux-671b00e26c6ca40f90789b0af59fafd44a096be9.tar.gz
kernel-qcow2-linux-671b00e26c6ca40f90789b0af59fafd44a096be9.tar.xz
kernel-qcow2-linux-671b00e26c6ca40f90789b0af59fafd44a096be9.zip
drm/amd/display: Fix use before initialize warning
on stream_for_cursor. Initialize to NULL. Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn10')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index 30f458701f9c..b5d048b364a4 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -2124,7 +2124,7 @@ static void dcn10_apply_ctx_for_surface(
}
if (num_planes > 0) {
- struct dc_stream_state *stream_for_cursor;
+ struct dc_stream_state *stream_for_cursor = NULL;
program_all_pipe_in_tree(dc, top_pipe_to_program, context);