Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 671b00e2 authored by Leo (Sunpeng) Li's avatar Leo (Sunpeng) Li Committed by Alex Deucher
Browse files

drm/amd/display: Fix use before initialize warning



on stream_for_cursor. Initialize to NULL.

Signed-off-by: default avatarLeo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent db65d4ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);