Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 013b73fa authored by Roel Kluin's avatar Roel Kluin Committed by John W. Linville
Browse files

wireless: Convert to list_for_each_entry_rcu()



Convert list_for_each_rcu() to list_for_each_entry_rcu()

Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b46b4ee0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;