]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7dfbd175996b6d6c7b03ee1304924b5054fc0eb
treee983e702b32f39a12fa3252027a49048e62bfacb
parentb0a6116fa76ee360b98898bbbf56631f98c6d714
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