]> Pileus Git - ~andy/linux/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)
commitea04cb31d506ac3f4fc3cefb1c50eb4f35ab37fd
tree19f7623a4694c0794e6905d37751537dba3f5497
parentf2f4d82faf85d2e53a2ba00a831a9f7f80b7e6e7
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