drm/amd/display: Check returned status from core_link_read_dpcd
authorAlex Hung <alex.hung@amd.com>
Fri, 4 Oct 2024 00:26:55 +0000 (18:26 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:24:13 +0000 (11:24 -0400)
commit3ff3b48ac8eb303ffc8fd7952199adb302f179f8
tree40c2e9daf0540febff4769248f8d272e6dd8e993
parentc0933f1de2a5eab2fefd07372b415583675cfe9f
drm/amd/display: Check returned status from core_link_read_dpcd

[WHAT]
The function core_link_read_dpcd returns status which is not used at
all, making them useless assignments.

[HOW]
Print error messages if core_link_read_dpcd does not return DC_OK.

This fixes 2 UNUSED_VALUE issues reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@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>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c