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

Commit 0de3b485 authored by Thomas Jarosch's avatar Thomas Jarosch Committed by Keith Packard
Browse files

drm/i915: Fix wrong initializer for "locked" variable in assert_panel_unlocked



Otherwise it just contains random memory.

Issue detected by cppcheck.

Signed-off-by: default avatarThomas Jarosch <thomas.jarosch@intra2net.com>
Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent a2cc797d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -878,7 +878,7 @@ static void assert_panel_unlocked(struct drm_i915_private *dev_priv,
	int pp_reg, lvds_reg;
	u32 val;
	enum pipe panel_pipe = PIPE_A;
	bool locked = locked;
	bool locked = true;

	if (HAS_PCH_SPLIT(dev_priv->dev)) {
		pp_reg = PCH_PP_CONTROL;