All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/drm_vma_manager.c: Remove useless goto statement
@ 2017-11-01 14:04 Liviu Dudau
  2017-11-01 14:11 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Liviu Dudau @ 2017-11-01 14:04 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: Liviu Dudau, DRI-devel

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. Remove them.

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>
---
 drivers/gpu/drm/drm_vma_manager.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_vma_manager.c b/drivers/gpu/drm/drm_vma_manager.c
index 28f1226576f8c..e545a7b2bcafc 100644
--- a/drivers/gpu/drm/drm_vma_manager.c
+++ b/drivers/gpu/drm/drm_vma_manager.c
@@ -213,8 +213,6 @@ int drm_vma_offset_add(struct drm_vma_offset_manager *mgr,
 	}
 
 	ret = drm_mm_insert_node(&mgr->vm_addr_space_mm, &node->vm_node, pages);
-	if (ret)
-		goto out_unlock;
 
 out_unlock:
 	write_unlock(&mgr->vm_lock);
-- 
2.14.3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-02  9:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 14:04 [PATCH] drm/drm_vma_manager.c: Remove useless goto statement Liviu Dudau
2017-11-01 14:11 ` Chris Wilson
2017-11-01 14:18   ` Liviu Dudau
2017-11-01 14:20   ` Liviu Dudau
2017-11-01 14:25     ` Chris Wilson
2017-11-01 14:44       ` [PATCH v2] " Liviu Dudau
2017-11-01 14:47         ` Chris Wilson
2017-11-02  9:43           ` Daniel Vetter
2017-11-01 16:55 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-11-01 17:37 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.