[Intel-gfx] [PATCH v2] drm/drm_vma_manager.c: Remove useless goto statement

Daniel Vetter daniel at ffwll.ch
Thu Nov 2 09:43:54 UTC 2017


On Wed, Nov 01, 2017 at 02:47:34PM +0000, Chris Wilson wrote:
> Quoting Liviu Dudau (2017-11-01 14:44:58)
> > Commit db2395eccf08i ("drm: Convert drm_vma_manager to embedded
> > interval-tree in drm_mm") removed a line in drm_vma_offset_add() function that
> > makes checking the result of calling drm_mm_insert_node() and the goto
> > call redundant. Rework the function (as suggested by Chris Wilson) to
> > eliminate the need for the goto and associated label.
> > 
> > v2: rewrite function to remove all goto statements.
> > 
> > Fixes: db2395eccf08i ("drm: Convert drm_vma_manager to embedded interval-tree in drm_mm")
> > Cc: Chris Wilson <chris at chris-wilson.co.uk>
> > Signed-off-by: Liviu Dudau <liviu.dudau at arm.com>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Applied to drm-misc-next.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list