drm/vc4: crtc: Fix redundant variable assignment
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Feb 2022 15:11:51 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Feb 2022 10:15:53 +0000 (11:15 +0100)
The variable is assigned twice to the same value. Let's drop one.

Reported-by: kernel test robot <yujie.liu@intel.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220203151151.1270461-1-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c

index 287dbc89ad642eb63af4ef2682f831a26d49e577..e6cc47470e03094f42e02f676198399d16d70205 100644 (file)
@@ -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;