drm/amd/display: Remove the unneeded result variable
authorzhang songyi <zhang.songyi@zte.com.cn>
Fri, 2 Sep 2022 07:54:50 +0000 (07:54 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Sep 2022 02:28:42 +0000 (22:28 -0400)
commit17048d89913c1713f0549aa47d63f2a4940545e8
treea227f9f3e3b8b25a732faf65cff576bb869b5390
parentb73ac0ecd4683878a335510fd100c1081e6c87fb
drm/amd/display: Remove the unneeded result variable

Return the enable_link_dp() directly instead of storing it in another
redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: zhang songyi <zhang.songyi@zte.com.cn>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c