drm/i915: fix warning for unused variable
authorJani Nikula <jani.nikula@intel.com>
Thu, 8 Jun 2017 13:58:23 +0000 (16:58 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 8 Jun 2017 14:09:44 +0000 (17:09 +0300)
drivers/gpu/drm/i915/intel_engine_cs.c: In function ‘intel_engine_is_idle’:
drivers/gpu/drm/i915/intel_engine_cs.c:1103:27: error: unused variable ‘dev_priv’ [-Werror=unused-variable]
  struct drm_i915_private *dev_priv = engine->i915;
                           ^~~~~~~~

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_engine_cs.c

index 9a0fb3cdd4e076868b43cf62ce81e9fb7fb5babe..f94eacff196c5d0980690ae95cda45c42e3a4e9b 100644 (file)
@@ -1100,8 +1100,6 @@ static bool ring_is_idle(struct intel_engine_cs *engine)
  */
 bool intel_engine_is_idle(struct intel_engine_cs *engine)
 {
-       struct drm_i915_private *dev_priv = engine->i915;
-
        /* Any inflight/incomplete requests? */
        if (!i915_seqno_passed(intel_engine_get_seqno(engine),
                               intel_engine_last_submit(engine)))