[CRIU] [PATCH] list: Drop unused __list_for_each

Andrei Vagin avagin at gmail.com
Sat Dec 8 09:53:17 MSK 2018


Applied, thanks!

On Thu, Dec 06, 2018 at 09:46:12AM +0000, Radostin Stoyanov wrote:
> 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
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list