drm/vc4: crtc: Fix redundant variable assignment
Subsystems (3)
PATCH 1/1 drm/vc4: crtc: Fix redundant variable assignment
The variable is assigned twice to the same value. Let's drop one.
Reported-by kernel test robot <[email protected]>
Signed-off-by Maxime Ripard <[email protected]>
--- drivers/gpu/drm/vc4/vc4_crtc.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/vc4/vc4_crtc.c +0 -1
@@ -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 ;
Signature · 1 line
2.34.1
Quoted 4 lines · Maxime Ripard
The variable is assigned twice to the same value. Let's drop one.
Reported-by kernel test robot <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Reviewed-by Sam Ravnborg <[email protected]>
Quoted 18 lines
--- drivers/gpu/drm/vc4/vc4_crtc.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/vc4/vc4_crtc.c +0
-1@@ -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 ;Signature · 1 line
2.34.1
Maxime Ripard
AppliedRe: (subset) [PATCH] drm/vc4: crtc: Fix redundant variable assignment
In reply to Maxime RipardQuoted 3 lines · Maxime Ripard
The variable is assigned twice to the same value. Let's drop one.
Applied to drm/drm-misc (drm-misc-fixes).
Thanks!
Maxime