From: Brian Paul Date: Thu, 11 Oct 2012 22:02:18 +0000 (-0600) Subject: svga: remove needless debug-mode linked list code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88ecd0ddb986a245c4d603dab2670aa8530ae132;p=mesa.git svga: remove needless debug-mode linked list code LIST_DEL() always sets the prev/next pointers to NULL now. --- 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;