]> 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)
commit01390d4aefa57846f8b0b2a05525f5f88e18a21e
treee983e702b32f39a12fa3252027a49048e62bfacb
parentbf6c629681b6936458460b66b62b5f59b0308705
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