]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: drop unnecessary local variable to suppress build warning
authorJani Nikula <jani.nikula@intel.com>
Sun, 11 Aug 2013 09:44:02 +0000 (12:44 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Aug 2013 10:15:04 +0000 (12:15 +0200)
commit80b816cd9daf5d12560d3e8687580ff11679bc41
tree0828047c563d665b0b0ac9987975a26bd4bbe03b
parent69bee63b99301dd3e26493f9d93ffc17a9fa73b7
drm/i915: drop unnecessary local variable to suppress build warning

Although I could not reproduce this (different compiler version,
perhaps), reportedly we get:

drivers/gpu/drm/i915/i915_irq.c:1943:27: warning: ‘score’ may be used
uninitialized in this function [-Wuninitialized]

Drop the 'score' variable altogether as it's not really needed.

Reported-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c