drm/amd/display: should check error using DC_OK
authorTong Zhang <ztong0001@gmail.com>
Sun, 16 Aug 2020 07:32:12 +0000 (03:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Aug 2020 22:22:49 +0000 (18:22 -0400)
commit16697cf39ed8c5948b44f786bf9bf749dc67692e
tree5b70559aab8cc18eb75fb0160f9f159e0bf4292c
parent1d5503331b12a76266049289747dfd94f1643fde
drm/amd/display: should check error using DC_OK

core_link_read_dpcd returns only DC_OK(1) and DC_ERROR_UNEXPECTED(-1),
the caller should check error using DC_OK instead of checking against 0

Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c