Skip to content

Commit

Permalink
drm/amd/display: Remove duplicate null check
Browse files Browse the repository at this point in the history
[WHAT & HOW]
The same display null check was a few lines above.

This fixes 1 DEADCODE issue reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Hung authored and Alex Deucher committed Jun 27, 2024
1 parent 4de670d commit bc180e2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,6 @@ enum mod_hdcp_status mod_hdcp_hdcp2_create_session(struct mod_hdcp *hdcp)
hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf;
memset(hdcp_cmd, 0, sizeof(struct ta_hdcp_shared_memory));

if (!display)
return MOD_HDCP_STATUS_DISPLAY_NOT_FOUND;

hdcp_cmd->in_msg.hdcp2_create_session_v2.display_handle = display->index;

if (hdcp->connection.link.adjust.hdcp2.force_type == MOD_HDCP_FORCE_TYPE_0)
Expand Down

0 comments on commit bc180e2

Please sign in to comment.