[PATCH] drm/drm_syncobj: Dead code removal
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Fri Oct 4 12:16:52 UTC 2019
Remove dead code, likely overseened during review process.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Chunming Zhou <david1.zhou at amd.com>
Cc: Daniel Vetter <daniel at ffwll.ch>
Cc: Jason Ekstrand <jason at jlekstrand.net>
---
drivers/gpu/drm/drm_syncobj.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
index 4b5c7b0ed714..21a22e39c9fa 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -192,8 +192,6 @@ static void drm_syncobj_fence_add_wait(struct drm_syncobj *syncobj,
if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
dma_fence_put(fence);
list_add_tail(&wait->node, &syncobj->cb_list);
- } else if (!fence) {
- wait->fence = dma_fence_get_stub();
} else {
wait->fence = fence;
}
@@ -856,8 +854,6 @@ static void syncobj_wait_syncobj_func(struct drm_syncobj *syncobj,
if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
dma_fence_put(fence);
return;
- } else if (!fence) {
- wait->fence = dma_fence_get_stub();
} else {
wait->fence = fence;
}
--
2.23.0
More information about the dri-devel
mailing list