From 88ecd0ddb986a245c4d603dab2670aa8530ae132 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 11 Oct 2012 16:02:18 -0600 Subject: [PATCH] svga: remove needless debug-mode linked list code LIST_DEL() always sets the prev/next pointers to NULL now. --- src/gallium/drivers/svga/svga_resource_buffer_upload.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/svga/svga_resource_buffer_upload.c b/src/gallium/drivers/svga/svga_resource_buffer_upload.c index f70a3c61c52..55e66134f60 100644 --- a/src/gallium/drivers/svga/svga_resource_buffer_upload.c +++ b/src/gallium/drivers/svga/svga_resource_buffer_upload.c @@ -287,9 +287,7 @@ svga_buffer_upload_flush(struct svga_context *svga, assert(sbuf->head.prev && sbuf->head.next); LIST_DEL(&sbuf->head); -#ifdef DEBUG - sbuf->head.next = sbuf->head.prev = NULL; -#endif + sbuf->dma.pending = FALSE; sbuf->dma.flags.discard = FALSE; sbuf->dma.flags.unsynchronized = FALSE; -- 2.30.2