i915, debugfs: Fix uninitialized warning
authorBorislav Petkov <bp@suse.de>
Thu, 21 Nov 2013 15:49:46 +0000 (16:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 21 Nov 2013 20:58:36 +0000 (21:58 +0100)
commit432f3342e0fc4d5601b2168fe251f9219bdc97d3
tree4283c5f2bfc1737ad4c3a6dd913f5fe1a83cd370
parent3458122e27fd381411e0cd4c45c28816fcffbe20
i915, debugfs: Fix uninitialized warning

gcc complains that:

drivers/gpu/drm/i915/i915_debugfs.c: In function ‘display_crc_ctl_write’:
drivers/gpu/drm/i915/i915_debugfs.c:2393:2: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
drivers/gpu/drm/i915/i915_debugfs.c:2350:6: note: ‘val’ was declared here

but it can't see that we're going to use val only in the success case.
So shut it up.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Cc: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c