drm/amd/display: remove unnecessary conditional operators
authorYe Guojin <ye.guojin@zte.com.cn>
Tue, 2 Nov 2021 07:01:25 +0000 (07:01 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Nov 2021 21:58:04 +0000 (16:58 -0500)
commitb97788e504daf4ed455ec35047977a3016355571
treee983e702b32f39a12fa3252027a49048e62bfacb
parent26db557e35d6b229b31078ebd6939b4cad936f6f
drm/amd/display: remove unnecessary conditional operators

Since the variables named is_end_of_payload and hpd_status are already
bool type, the ?: conditional operator is unnecessary any more.

Clean them up here.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Reviewed-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c