From d95cdcb81faa1c9a043681b90090065d1cee7fb5 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 23 May 2013 10:33:39 -0400 Subject: [PATCH] hlist: remove needless "member" parameter cds_hlist_for_each_rcu and cds_hlist_first_rcu don't need to "member" parameter at all. Signed-off-by: Mathieu Desnoyers --- urcu/rcuhlist.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/urcu/rcuhlist.h b/urcu/rcuhlist.h index 06359d5..1dcbdb4 100644 --- a/urcu/rcuhlist.h +++ b/urcu/rcuhlist.h @@ -54,7 +54,7 @@ static inline void cds_hlist_del_rcu(struct cds_hlist_node *elem) * Get first element from a RCU hlist. Assumes the hlist is not empty. * This must be done while rcu_read_lock() is held. */ -#define cds_hlist_first_rcu(ptr, type, member) \ +#define cds_hlist_first_rcu(ptr, type) \ rcu_dereference((ptr)->next) /* @@ -69,10 +69,10 @@ static inline void cds_hlist_del_rcu(struct cds_hlist_node *elem) * This must be done while rcu_read_lock() is held. */ -#define cds_hlist_for_each_rcu(pos, head, member) \ +#define cds_hlist_for_each_rcu(pos, head) \ for (pos = rcu_dereference((head)->next); \ pos != NULL; \ - pos = rcu_dereference(pos->next)) + pos = rcu_dereference((pos)->next)) /* * Iterate through elements of the list. -- 2.34.1