summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhang songyi <zhang.songyi@zte.com.cn>2022-09-02 07:54:50 +0000
committerAlex Deucher <alexander.deucher@amd.com>2022-09-07 22:28:42 -0400
commit17048d89913c1713f0549aa47d63f2a4940545e8 (patch)
treea227f9f3e3b8b25a732faf65cff576bb869b5390
parentb73ac0ecd4683878a335510fd100c1081e6c87fb (diff)
downloadlinux-17048d89913c1713f0549aa47d63f2a4940545e8.tar.bz2
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>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_link.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
index 38fa63d43ad9..19644ed7f584 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -2077,11 +2077,7 @@ static enum dc_status enable_link_edp(
struct dc_state *state,
struct pipe_ctx *pipe_ctx)
{
- enum dc_status status;
-
- status = enable_link_dp(state, pipe_ctx);
-
- return status;
+ return enable_link_dp(state, pipe_ctx);
}
static enum dc_status enable_link_dp_mst(