diff options
author | Prarit Bhargava <prarit@redhat.com> | 2010-05-27 13:37:56 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-01 15:57:51 -0700 |
commit | 132b6aab90d2673af67c414878da241a197e00fb (patch) | |
tree | fc3771f1aa71a7b085c3ce643a04f078de524c4b | |
parent | ee0c6bfbd602cdad2ab1780061b3b1a9108cbd6c (diff) | |
download | talos-obmc-linux-132b6aab90d2673af67c414878da241a197e00fb.tar.gz talos-obmc-linux-132b6aab90d2673af67c414878da241a197e00fb.zip |
drm/i915: fix uninitialized variable warning in i915_setup_compression()
Fixes:
drivers/gpu/drm/i915/i915_dma.c: In function ‘i915_setup_compression’:
drivers/gpu/drm/i915/i915_dma.c:1311: error: ‘compressed_llb’ may be used uninitialized in this function
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 19677ecfe2bf..e50ae3c6cb6e 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1231,7 +1231,7 @@ static void i915_warn_stolen(struct drm_device *dev) static void i915_setup_compression(struct drm_device *dev, int size) { struct drm_i915_private *dev_priv = dev->dev_private; - struct drm_mm_node *compressed_fb, *compressed_llb; + struct drm_mm_node *compressed_fb, *uninitialized_var(compressed_llb); unsigned long cfb_base; unsigned long ll_base = 0; |