Commit 7b0bcead authored by Colin Ian King's avatar Colin Ian King Committed by Ville Syrjälä
Browse files

drm/i915/display: remove duplicated assignment to pointer crtc_state



Pointer crtc_state is being assigned twice, one of these is redundant
and can be removed.

Addresses-Coverity: ("Evaluation order violation")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210144535.341977-1-colin.king@canonical.com
parent b104e8b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17751,7 +17751,7 @@ intel_modeset_setup_hw_state(struct drm_device *dev,

	for_each_intel_crtc(&dev_priv->drm, crtc) {
		struct intel_crtc_state *crtc_state =
			crtc_state = to_intel_crtc_state(crtc->base.state);
			to_intel_crtc_state(crtc->base.state);

		intel_sanitize_crtc(crtc, ctx);
		intel_dump_pipe_config(crtc_state, NULL, "[setup_hw_state]");