[CRIU] [PATCH] list: Drop unused __list_for_each

Radostin Stoyanov rstoyanov1 at gmail.com
Thu Dec 6 12:46:12 MSK 2018


The macro __list_for_each is equivalent to list_for_each and it is not
used anywhere.

Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
 include/common/list.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/common/list.h b/include/common/list.h
index 4e33475c..b8b57c78 100644
--- a/include/common/list.h
+++ b/include/common/list.h
@@ -216,9 +216,6 @@ static inline void list_splice_tail_init(struct list_head *list,
 #define list_for_each(pos, head)				\
 	for (pos = (head)->next; pos != (head); pos = pos->next)

-#define __list_for_each(pos, head)				\
-	for (pos = (head)->next; pos != (head); pos = pos->next)
-
 #define list_for_each_prev(pos, head)				\
 	for (pos = (head)->prev; pos != (head); pos = pos->prev)

--
2.19.2



More information about the CRIU mailing list