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)
commitc5cb2cdf23ceefd9ef319d6c0d6ac294dfe356b6
tree5c8db5228ffdffb938914a460e83a7c99147fcd0
parentff15cea338d2c78e0086d55c8a9dd637a5dd3ccc
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