Skip to content

Commit fc764b1

Browse files
committed
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]> Reviewed-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 6df4432 commit fc764b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/vc4/vc4_crtc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,6 @@ static int vc4_crtc_atomic_check(struct drm_crtc *crtc,
671671
const struct drm_display_mode *mode = &crtc_state->adjusted_mode;
672672
struct vc4_encoder *vc4_encoder = to_vc4_encoder(encoder);
673673

674-
mode = &crtc_state->adjusted_mode;
675674
if (vc4_encoder->type == VC4_ENCODER_TYPE_HDMI0) {
676675
vc4_state->hvs_load = max(mode->clock * mode->hdisplay / mode->htotal + 1000,
677676
mode->clock * 9 / 10) * 1000;

0 commit comments

Comments
 (0)