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>
This commit is contained in:
Leo (Sunpeng) Li 2017-11-08 15:30:19 -05:00 committed by Alex Deucher
parent db65d4ad91
commit 671b00e26c
1 changed files with 1 additions and 1 deletions

View File

@ -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);