static bool intel_crtc_has_pending_flip(struct drm_crtc *crtc)
 {
-       struct drm_device *dev = crtc->dev;
-       struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
-       unsigned reset_counter;
-
-       reset_counter = i915_reset_counter(&to_i915(dev)->gpu_error);
-       if (intel_crtc->reset_counter != reset_counter)
-               return false;
-
        return !list_empty_careful(&to_intel_crtc(crtc)->flip_work);
 }
 
 
        intel_fbc_pre_update(intel_crtc);
 
-       intel_crtc->reset_counter = i915_reset_counter(&dev_priv->gpu_error);
        schedule_work(&work->mmio_work);
 
        mutex_unlock(&dev->struct_mutex);
 
 
        struct intel_crtc_state *config;
 
-       /* reset counter value when the last flip was submitted */
-       unsigned int reset_counter;
-
        /* Access to these should be protected by dev_priv->irq_lock. */
        bool cpu_fifo_underrun_disabled;
        bool pch_fifo_underrun_disabled;