diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2008-02-19 09:41:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:25 -0500 |
commit | 013b73faff107e56cbe75fe4b881f5d80a8cf022 (patch) | |
tree | cca898bb7c8e09fee954608b0c3df944fa86e66c /drivers/net | |
parent | b46b4ee034645dc87a34b29a7989a2540a8ee8ea (diff) |
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 <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/strip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index 88efe1bae58f..bced3fe1cf8a 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) | |||
962 | /* get Nth element of the linked list */ | 962 | /* get Nth element of the linked list */ |
963 | static struct strip *strip_get_idx(loff_t pos) | 963 | static struct strip *strip_get_idx(loff_t pos) |
964 | { | 964 | { |
965 | struct list_head *l; | 965 | struct strip *str; |
966 | int i = 0; | 966 | int i = 0; |
967 | 967 | ||
968 | list_for_each_rcu(l, &strip_list) { | 968 | list_for_each_entry_rcu(str, &strip_list, list) { |
969 | if (pos == i) | 969 | if (pos == i) |
970 | return list_entry(l, struct strip, list); | 970 | return str; |
971 | ++i; | 971 | ++i; |
972 | } | 972 | } |
973 | return NULL; | 973 | return NULL; |