OSDN Git Service

drm/drm_vma_manager.c: Remove useless goto statement
authorLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 1 Nov 2017 14:44:58 +0000 (14:44 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Nov 2017 09:44:08 +0000 (10:44 +0100)
commit7fb50b957be10e631f649eca8bd66a0b89795149
treee4aba7c74aec16b6d7baa42d4d218fd5edd73710
parent304a4f6accac4add4967fc062069fc8421c46aae
drm/drm_vma_manager.c: Remove useless goto statement

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@chris-wilson.co.uk>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171101144458.5353-1-Liviu.Dudau@arm.com
drivers/gpu/drm/drm_vma_manager.c