diff options
author | Prarit Bhargava <prarit@redhat.com> | 2010-05-27 13:37:56 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-01 18:57:51 -0400 |
commit | 132b6aab90d2673af67c414878da241a197e00fb (patch) | |
tree | fc3771f1aa71a7b085c3ce643a04f078de524c4b | |
parent | ee0c6bfbd602cdad2ab1780061b3b1a9108cbd6c (diff) |
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) | |||
1231 | static void i915_setup_compression(struct drm_device *dev, int size) | 1231 | static void i915_setup_compression(struct drm_device *dev, int size) |
1232 | { | 1232 | { |
1233 | struct drm_i915_private *dev_priv = dev->dev_private; | 1233 | struct drm_i915_private *dev_priv = dev->dev_private; |
1234 | struct drm_mm_node *compressed_fb, *compressed_llb; | 1234 | struct drm_mm_node *compressed_fb, *uninitialized_var(compressed_llb); |
1235 | unsigned long cfb_base; | 1235 | unsigned long cfb_base; |
1236 | unsigned long ll_base = 0; | 1236 | unsigned long ll_base = 0; |
1237 | 1237 | ||