]> git.baikalelectronics.ru Git - kernel.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>
Thu, 22 Aug 2013 11:31:38 +0000 (13:31 +0200)
commitcbcd376fcc9693c38ea3c4bf636350ececd63624
tree19f7623a4694c0794e6905d37751537dba3f5497
parent3141321090f724fd97cf3d81c22cf077b96e85a0
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