提交 013b73fa 编写于 作者: R Roel Kluin 提交者: John W. Linville

wireless: Convert to list_for_each_entry_rcu()

Convert list_for_each_rcu() to list_for_each_entry_rcu()
Signed-off-by: NRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 b46b4ee0
...@@ -962,12 +962,12 @@ static char *time_delta(char buffer[], long time) ...@@ -962,12 +962,12 @@ static char *time_delta(char buffer[], long time)
/* get Nth element of the linked list */ /* get Nth element of the linked list */
static struct strip *strip_get_idx(loff_t pos) static struct strip *strip_get_idx(loff_t pos)
{ {
struct list_head *l; struct strip *str;
int i = 0; int i = 0;
list_for_each_rcu(l, &strip_list) { list_for_each_entry_rcu(str, &strip_list, list) {
if (pos == i) if (pos == i)
return list_entry(l, struct strip, list); return str;
++i; ++i;
} }
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册