diff options
author | Eric Anholt <[email protected]> | 2015-01-26 11:34:18 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-01-28 16:33:34 -0800 |
commit | 7c99187c6a6144cb9fd9d77261c643257246ede7 (patch) | |
tree | 787a826307a8e62c4b97e0a83695dfd1d01ee149 /src | |
parent | 8ab6759cef6dc5101be3badce10a52d1d046f2ea (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/util/simple_list.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/simple_list.h b/src/util/simple_list.h index 903432dce5c..5f261612aec 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) /** |