From: Stephen Hemminger Make code for hlist_for_each_safe use better code (same as hlist_for_each_entry_safe). Get rid of comment about prefetch, because that was fixed a while ago. Only current use of this is in the bridge code, that I maintain. Signed-off-by: Stephen Hemminger Signed-off-by: Andrew Morton --- 25-akpm/include/linux/list.h | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN include/linux/list.h~hlist_for_each_safe-cleanup include/linux/list.h --- 25/include/linux/list.h~hlist_for_each_safe-cleanup 2004-07-26 18:03:10.776725336 -0700 +++ 25-akpm/include/linux/list.h 2004-07-26 18:03:10.780724728 -0700 @@ -623,13 +623,12 @@ static inline void hlist_add_after(struc #define hlist_entry(ptr, type, member) container_of(ptr,type,member) -/* Cannot easily do prefetch unfortunately */ #define hlist_for_each(pos, head) \ for (pos = (head)->first; pos && ({ prefetch(pos->next); 1; }); \ pos = pos->next) #define hlist_for_each_safe(pos, n, head) \ - for (pos = (head)->first; n = pos ? pos->next : NULL, pos; \ + for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \ pos = n) /** _