drm/i915: remove redundant variable hw_check
authorColin Ian King <colin.king@canonical.com>
Thu, 14 Sep 2017 16:21:54 +0000 (17:21 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 26 Sep 2017 16:14:25 +0000 (09:14 -0700)
commitbf5d10dcae3549b779490672c705c6ac79cf68a3
tree6d05cb06c4061092ed9dad0d308bd2071f06b4bf
parent2d8f63297b9f0b430c96329893667c0bfdcbd47e
drm/i915: remove redundant variable hw_check

hw_check is being assigned and updated but is no longer being read,
hence it is redundant and can be removed.

Detected by clang scan-build:
"warning: Value stored to 'hw_check' during its initialization
is never read"

Fixes: f6d1973db2d2 ("drm/i915: Move modeset state verifier calls")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170914162154.11304-1-colin.king@canonical.com
(cherry picked from commit 4babc5e27cfda59e2e257d28628b8d853aea5206)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_display.c