list: Drop unused __list_for_each

Submitted by Radostin Stoyanov on Dec. 6, 2018, 9:46 a.m.

Details

Message ID 20181206094612.19307-1-rstoyanov1@gmail.com
State Accepted
Series "list: Drop unused __list_for_each"
Headers show

Commit Message

Radostin Stoyanov Dec. 6, 2018, 9:46 a.m.
The macro __list_for_each is equivalent to list_for_each and it is not
used anywhere.

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

--
2.19.2

Patch hide | download patch | download mbox

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)


Comments

Andrei Vagin Dec. 8, 2018, 6:53 a.m.
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@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@openvz.org
> https://lists.openvz.org/mailman/listinfo/criu