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>
Wed, 26 Aug 2020 19:11:09 +0000 (15:11 -0400)
commited9ab229fea24cbcab17f484297dc8344afb7ea9
tree45252940c59a34443154dd37380e11786b11e9f1
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
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