Removed code from the old prefetch stuff in the linux kernel
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Tue, 8 Nov 2005 15:29:56 +0000 (15:29 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Tue, 8 Nov 2005 15:29:56 +0000 (15:29 +0000)
[r6896]

ir/adt/list.h

index 2f8a267..8713e36 100644 (file)
@@ -206,8 +206,7 @@ static INLINE void list_splice_init(struct list_head *list,
  * @param head the head for your list.
  */
 #define list_for_each(pos, head) \
-       for (pos = (head)->next, (pos->next); pos != (head); \
-               pos = pos->next, (pos->next))
+       for (pos = (head)->next; pos != (head); pos = pos->next)
 
 /**
  * __list_for_each     -       iterate over a list
@@ -228,8 +227,7 @@ static INLINE void list_splice_init(struct list_head *list,
  * @param head the head for your list.
  */
 #define list_for_each_prev(pos, head) \
-       for (pos = (head)->prev, (pos->prev); pos != (head); \
-               pos = pos->prev, (pos->prev))
+       for (pos = (head)->prev; pos != (head); pos = pos->prev)
 
 /**
  * list_for_each_safe  -       iterate over a list safe against removal of list entry