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 20:21:20 +0200
commit0de3b4856907d9937c6c23cfbfdec1e8e3596ea7 (patch)
treef3c8b0ba5d4fd30384dc230d4286b6c689ae548f
parenti915: do not setup intel_backlight twice (diff)
downloadlinux-0de3b4856907d9937c6c23cfbfdec1e8e3596ea7.tar.xz
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;