]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: fix double assignment to msg_id field
authorColin Ian King <colin.king@canonical.com>
Wed, 20 Nov 2019 17:22:42 +0000 (17:22 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2019 22:54:52 +0000 (17:54 -0500)
The msg_id field is being assigned twice. Fix this by replacing the second
assignment with an assignment to msg_size.

Addresses-Coverity: ("Unused value")
Fixes: 11a00965d261 ("drm/amd/display: Add PSP block to verify HDCP2.2 steps")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c

index 468f5e6c3487a0a8f27ddaee4dade157a26e9af0..ef4eb55f44743e6e95d3a06ee0b8dbb43c4c06e6 100644 (file)
@@ -42,7 +42,7 @@ static void hdcp2_message_init(struct mod_hdcp *hdcp,
        in->process.msg2_desc.msg_id = TA_HDCP_HDCP2_MSG_ID__NULL_MESSAGE;
        in->process.msg2_desc.msg_size = 0;
        in->process.msg3_desc.msg_id = TA_HDCP_HDCP2_MSG_ID__NULL_MESSAGE;
-       in->process.msg3_desc.msg_id = 0;
+       in->process.msg3_desc.msg_size = 0;
 }
 enum mod_hdcp_status mod_hdcp_remove_display_topology(struct mod_hdcp *hdcp)
 {