On Tue, Feb 2, 2021 at 8:31 AM Bernard Zhao <bernard@xxxxxxxx> wrote: > > Remove unneeded variable: "pattern". > > Signed-off-by: Bernard Zhao <bernard@xxxxxxxx> Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > index f95bade59624..d77ae58210f6 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > @@ -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, > -- > 2.29.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx