Skip to content

Commit

Permalink
wireless: Convert to list_for_each_entry_rcu()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and John W. Linville committed Feb 29, 2008
1 parent b46b4ee commit 013b73f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/strip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 013b73f

Please sign in to comment.