diff options
Diffstat (limited to 'drivers/net/wireless/strip.c')
-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; |