drm/i915: Reduce clutter by using the local plane pointer
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Mar 2015 11:15:22 +0000 (13:15 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Mar 2015 21:30:19 +0000 (22:30 +0100)
No need to go dig throguh intel_crtc->base.cursor when we already have
the same thing as 'plane' local variable.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index d6c9fb417e054d72663b599839041520743d6214..821409df5bb14eb0e790e347a8c152bebe761f18 100644 (file)
@@ -12372,7 +12372,7 @@ intel_check_cursor_plane(struct drm_plane *plane,
 
 finish:
        if (intel_crtc->active) {
-               if (intel_crtc->base.cursor->state->crtc_w != state->base.crtc_w)
+               if (plane->state->crtc_w != state->base.crtc_w)
                        intel_crtc->atomic.update_wm = true;
 
                intel_crtc->atomic.fb_bits |=