[PATCH] amd/display: remove unneeded variable: "pattern"

Alex Deucher alexdeucher at gmail.com
Tue Feb 2 16:29:06 UTC 2021


On Tue, Feb 2, 2021 at 8:31 AM Bernard Zhao <bernard at vivo.com> wrote:
>
> Remove unneeded variable: "pattern".
>
> Signed-off-by: Bernard Zhao <bernard at vivo.com>

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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the dri-devel mailing list