[Intel-gfx] [PATCH] drm/i915: Remove useless casts to intel_plane_state

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 12 09:54:25 UTC 2017


On Thu, Jan 12, 2017 at 10:43:45AM +0100, Maarten Lankhorst wrote:
> The visible member used to be in intel_plane_state->visible,
> but has been moved to drm_plane_state->visible. In the conversion
> some casts were left in that are now useless.
> 
> to_intel_plane_state(x)->base.visible is the same as x->visible,
> so use the latter to clear up the code a little.
> 
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>

Matches the result of git grep "to_intel_plane_state(.*)->base\."

I didn't bother writing the spatch and just relied on reading the patch
instead.
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list