Mesa (master): mesa: Port a variant of 68afbe89c72d085dcbbf2b264f0201ab73fe339e to util/
Eric Anholt
anholt at kemper.freedesktop.org
Thu Jan 29 00:34:51 UTC 2015
Module: Mesa
Branch: master
Commit: 7c99187c6a6144cb9fd9d77261c643257246ede7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c99187c6a6144cb9fd9d77261c643257246ede7
Author: Eric Anholt <eric at anholt.net>
Date: Mon Jan 26 11:34:18 2015 -0800
mesa: Port a variant of 68afbe89c72d085dcbbf2b264f0201ab73fe339e to util/
The idea is that after a remove_from_list(), you might want to be able to
do a remove_from_list() on it again or an is_empty_list(). This is
apparently relied on by r300g.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/util/simple_list.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/simple_list.h b/src/util/simple_list.h
index 903432d..5f26161 100644
--- a/src/util/simple_list.h
+++ b/src/util/simple_list.h
@@ -55,6 +55,7 @@ struct simple_node {
do { \
(elem)->next->prev = (elem)->prev; \
(elem)->prev->next = (elem)->next; \
+ make_empty_list(elem); \
} while (0)
/**
More information about the mesa-commit
mailing list