am 2113474a: am 17c3a227: am 617c28b8: Merge "Fix list_for_each_safe macro"

* commit '2113474ae090ee4c6a06864011ce8a4e4cae9673':
  Fix list_for_each_safe macro
This commit is contained in:
Colin Cross 2014-05-23 19:34:02 +00:00 committed by Android Git Automerger
commit 2594f0f6d1

View file

@ -44,10 +44,10 @@ struct listnode
#define list_for_each_reverse(node, list) \
for (node = (list)->prev; node != (list); node = node->prev)
#define list_for_each_safe(node, next, list) \
for (node = (list)->next, next = node->next; \
#define list_for_each_safe(node, n, list) \
for (node = (list)->next, n = node->next; \
node != (list); \
node = next, next = node->next)
node = n, n = node->next)
static inline void list_init(struct listnode *node)
{