]> err.no Git - linux-2.6/commitdiff
wireless: Convert to list_for_each_entry_rcu()
authorRoel Kluin <12o3l@tiscali.nl>
Tue, 19 Feb 2008 14:41:50 +0000 (15:41 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:37:25 +0000 (15:37 -0500)
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>
drivers/net/wireless/strip.c

index 88efe1bae58f5333d933c93ec21ac0b6aa09c42b..bced3fe1cf8a412968ebc46375b297349b5fcc8d 100644 (file)
@@ -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;