提交 671b00e2 编写于 作者: L Leo (Sunpeng) Li 提交者: Alex Deucher

drm/amd/display: Fix use before initialize warning

on stream_for_cursor. Initialize to NULL.
Signed-off-by: NLeo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 db65d4ad
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册