From: Roel Kluin <12o3l@tiscali.nl> Date: Tue, 19 Feb 2008 14:41:50 +0000 (+0100) Subject: wireless: Convert to list_for_each_entry_rcu() X-Git-Tag: v2.6.26-rc1~1138^2~530^2~24 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=013b73faff107e56cbe75fe4b881f5d80a8cf022;p=linux-2.6-omap-h63xx.git wireless: Convert to list_for_each_entry_rcu() Convert list_for_each_rcu() to list_for_each_entry_rcu() Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index 88efe1bae58..bced3fe1cf8 100644 --- a/drivers/net/wireless/strip.c +++ b/drivers/net/wireless/strip.c @@ -962,12 +962,12 @@ static char *time_delta(char buffer[], long time) /* get Nth element of the linked list */ static struct strip *strip_get_idx(loff_t pos) { - struct list_head *l; + struct strip *str; int i = 0; - list_for_each_rcu(l, &strip_list) { + list_for_each_entry_rcu(str, &strip_list, list) { if (pos == i) - return list_entry(l, struct strip, list); + return str; ++i; } return NULL;