aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhang songyi <[email protected]>2022-09-02 07:54:50 +0000
committerAlex Deucher <[email protected]>2022-09-07 22:28:42 -0400
commit17048d89913c1713f0549aa47d63f2a4940545e8 (patch)
treea227f9f3e3b8b25a732faf65cff576bb869b5390
parentb73ac0ecd4683878a335510fd100c1081e6c87fb (diff)
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 <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: zhang songyi <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-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(