[PATCH] drm/vc4: crtc: Fix redundant variable assignment
Sam Ravnborg
sam at ravnborg.org
Thu Feb 3 15:27:54 UTC 2022
On Thu, Feb 03, 2022 at 04:11:51PM +0100, Maxime Ripard wrote:
> The variable is assigned twice to the same value. Let's drop one.
>
> Reported-by: kernel test robot <yujie.liu at intel.com>
> Signed-off-by: Maxime Ripard <maxime at cerno.tech>
Reviewed-by: Sam Ravnborg <sam at ravnborg.org>
> ---
> drivers/gpu/drm/vc4/vc4_crtc.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c
> index 287dbc89ad64..e6cc47470e03 100644
> --- a/drivers/gpu/drm/vc4/vc4_crtc.c
> +++ b/drivers/gpu/drm/vc4/vc4_crtc.c
> @@ -671,7 +671,6 @@ static int vc4_crtc_atomic_check(struct drm_crtc *crtc,
> const struct drm_display_mode *mode = &crtc_state->adjusted_mode;
> struct vc4_encoder *vc4_encoder = to_vc4_encoder(encoder);
>
> - mode = &crtc_state->adjusted_mode;
> if (vc4_encoder->type == VC4_ENCODER_TYPE_HDMI0) {
> vc4_state->hvs_load = max(mode->clock * mode->hdisplay / mode->htotal + 1000,
> mode->clock * 9 / 10) * 1000;
> --
> 2.34.1
More information about the dri-devel
mailing list