drm/i915: Fix wrong initializer for "locked" variable in assert_panel_unlocked
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 25 Aug 2011 13:37:45 +0000 (15:37 +0200)
committerKeith Packard <keithp@keithp.com>
Thu, 25 Aug 2011 18:21:20 +0000 (11:21 -0700)
Otherwise it just contains random memory.

Issue detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c

index 5a1ae9f06cb4c40d33c268415b3b2a6cafff6732..56a8554d9039615b4b7772d474706ce2815a0a78 100644 (file)
@@ -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;