From 9e4aca4df3f800aec0c635031d5984b5e6d186a6 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 21 Jun 2014 19:20:23 +0200 Subject: [PATCH] list.h: Remove unused list_for_each_safe(). --- list.h | 11 ----------- 1 file changed, 11 deletions(-) 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 * -- 2.39.2