amd/display: remove unneeded variable: "pattern"
authorBernard Zhao <bernard@vivo.com>
Tue, 2 Feb 2021 12:19:24 +0000 (04:19 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 17:12:51 +0000 (12:12 -0500)
Remove unneeded variable: "pattern".

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 78857c9..c1391bf 100644 (file)
@@ -126,9 +126,7 @@ static void dpcd_set_training_pattern(
 static enum dc_dp_training_pattern decide_cr_training_pattern(
                const struct dc_link_settings *link_settings)
 {
-       enum dc_dp_training_pattern pattern = DP_TRAINING_PATTERN_SEQUENCE_1;
-
-       return pattern;
+       return DP_TRAINING_PATTERN_SEQUENCE_1;
 }
 
 static enum dc_dp_training_pattern decide_eq_training_pattern(struct dc_link *link,