diff options
author | Thomas Jarosch <thomas.jarosch@intra2net.com> | 2011-08-25 15:37:45 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-25 11:21:20 -0700 |
commit | 0de3b4856907d9937c6c23cfbfdec1e8e3596ea7 (patch) | |
tree | f3c8b0ba5d4fd30384dc230d4286b6c689ae548f | |
parent | a2cc797d2d1a116b607de353de0ae1c2cab80b74 (diff) | |
download | blackbird-op-linux-0de3b4856907d9937c6c23cfbfdec1e8e3596ea7.tar.gz blackbird-op-linux-0de3b4856907d9937c6c23cfbfdec1e8e3596ea7.zip |
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: Thomas Jarosch <thomas.jarosch@intra2net.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 5a1ae9f06cb4..56a8554d9039 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -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; |