]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Re-org and cleanup the redundant code
authorChandan Vurdigere Nataraj <chandan.vurdigerenataraj@amd.com>
Sun, 26 Jun 2022 10:11:44 +0000 (15:41 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jun 2022 21:12:25 +0000 (17:12 -0400)
commitb36424d22f5d55ced66d8c8b980b535a71d25f35
tree5c8db5228ffdffb938914a460e83a7c99147fcd0
parent295d24925adca1189ea71875a6b46afdb0a9722a
drm/amd/display: Re-org and cleanup the redundant code

[Why]
Redundant if-else cases for repeater and non-repeater checks

[How]
Without changing the core logic, rearranged the code by removing
redundant checks

Signed-off-by: Chandan Vurdigere Nataraj <chandan.vurdigerenataraj@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c