Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d374d96 authored by Damien Lespiau's avatar Damien Lespiau Committed by Daniel Vetter
Browse files

drm/i915/skl: Reduce the indentation level in skl_write_wm_values()



We can reduce the indentation level by continuing early.

Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent afb024aa
Loading
Loading
Loading
Loading
+21 −21
Original line number Diff line number Diff line
@@ -3485,9 +3485,10 @@ static void skl_write_wm_values(struct drm_i915_private *dev_priv,
		int i, level, max_level = ilk_wm_max_level(dev);
		enum pipe pipe = crtc->pipe;

		if (new->dirty[pipe]) {
			I915_WRITE(PIPE_WM_LINETIME(pipe),
					new->wm_linetime[pipe]);
		if (!new->dirty[pipe])
			continue;

		I915_WRITE(PIPE_WM_LINETIME(pipe), new->wm_linetime[pipe]);

		for (level = 0; level <= max_level; level++) {
			for (i = 0; i < intel_num_planes(crtc); i++)
@@ -3510,7 +3511,6 @@ static void skl_write_wm_values(struct drm_i915_private *dev_priv,
				    &new->ddb.cursor[pipe]);
	}
}
}

static bool skl_update_pipe_wm(struct drm_crtc *crtc,
			       struct skl_pipe_wm_parameters *params,