svga: remove duplicated code
list_del unconditionally sets "next" and "prev" to NULL. Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110>
This commit is contained in:
committed by
Marge Bot
parent
8513b12590
commit
bec3463977
@@ -730,9 +730,6 @@ svga_buffer_upload_flush(struct svga_context *svga, struct svga_buffer *sbuf)
|
||||
|
||||
assert(sbuf->head.prev && sbuf->head.next);
|
||||
list_del(&sbuf->head); /* remove from svga->dirty_buffers list */
|
||||
#ifdef DEBUG
|
||||
sbuf->head.next = sbuf->head.prev = NULL;
|
||||
#endif
|
||||
sbuf->dma.pending = FALSE;
|
||||
sbuf->dma.flags.discard = FALSE;
|
||||
sbuf->dma.flags.unsynchronized = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user