From: Andre Noll Date: Sat, 21 Jun 2014 17:20:23 +0000 (+0200) Subject: list.h: Remove unused list_for_each_safe(). X-Git-Tag: v0.5.5~66 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=9e4aca4df3f800aec0c635031d5984b5e6d186a6;hp=f88913cf2a4a6830133355364d0f05bef8e4b260 list.h: Remove unused list_for_each_safe(). --- diff --git a/list.h b/list.h index e4b5a1f6..66c6d915 100644 --- a/list.h +++ b/list.h @@ -156,17 +156,6 @@ static inline int list_empty(const struct list_head *head) #define list_entry(ptr, type, member) \ container_of(ptr, type, member) -/** - * iterate over a list safe against removal of list entry - * - * \param pos the &struct list_head to use as a loop counter. - * \param n another &struct list_head to use as temporary storage - * \param head the head for your list. - */ -#define list_for_each_safe(pos, n, head) \ - for (pos = (head)->next, n = pos->next; pos != (head); \ - pos = n, n = pos->next) - /** * iterate over list of given type *