mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
drm/amd/display: Fix Coverity change for visual confirm
[Why && How] Previous change for Coverity has caused regression on visual confirm so fix it by reverting the part that affects visual confirm. Reviewed-by: Chris Park <chris.park@amd.com> Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com> Signed-off-by: Roman Li <roman.li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
df60dcf5b5
commit
74a55071dd
|
|
@ -519,7 +519,8 @@ void dc_dmub_srv_get_visual_confirm_color_cmd(struct dc *dc, struct pipe_ctx *pi
|
|||
union dmub_rb_cmd cmd = { 0 };
|
||||
unsigned int panel_inst = 0;
|
||||
|
||||
if (!dc_get_edp_link_panel_inst(dc, pipe_ctx->stream->link, &panel_inst))
|
||||
if (!dc_get_edp_link_panel_inst(dc, pipe_ctx->stream->link, &panel_inst) &&
|
||||
dc->debug.visual_confirm == VISUAL_CONFIRM_DISABLE)
|
||||
return;
|
||||
|
||||
memset(&cmd, 0, sizeof(cmd));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user