Skip to content

Commit

Permalink
drm/i915: fix uninitialized variable warning in i915_setup_compression()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
  • Loading branch information
prarit authored and anholt committed Jul 1, 2010
1 parent ee0c6bf commit 132b6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 132b6aa

Please sign in to comment.