summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jarosch <thomas.jarosch@intra2net.com>2011-08-25 15:37:45 +0200
committerKeith Packard <keithp@keithp.com>2011-08-25 11:21:20 -0700
commit0de3b4856907d9937c6c23cfbfdec1e8e3596ea7 (patch)
treef3c8b0ba5d4fd30384dc230d4286b6c689ae548f
parenta2cc797d2d1a116b607de353de0ae1c2cab80b74 (diff)
downloadblackbird-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.c2
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;
OpenPOWER on IntegriCloud