aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/strip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/strip.c')
-rw-r--r--drivers/net/wireless/strip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c
index 2a299a0676a6..ef32a5c1e818 100644
--- a/drivers/net/wireless/strip.c
+++ b/drivers/net/wireless/strip.c
@@ -1971,8 +1971,7 @@ static struct net_device *get_strip_dev(struct strip *strip_info)
1971 sizeof(zero_address))) { 1971 sizeof(zero_address))) {
1972 struct net_device *dev; 1972 struct net_device *dev;
1973 read_lock_bh(&dev_base_lock); 1973 read_lock_bh(&dev_base_lock);
1974 dev = dev_base; 1974 for_each_netdev(dev) {
1975 while (dev) {
1976 if (dev->type == strip_info->dev->type && 1975 if (dev->type == strip_info->dev->type &&
1977 !memcmp(dev->dev_addr, 1976 !memcmp(dev->dev_addr,
1978 &strip_info->true_dev_addr, 1977 &strip_info->true_dev_addr,
@@ -1983,7 +1982,6 @@ static struct net_device *get_strip_dev(struct strip *strip_info)
1983 read_unlock_bh(&dev_base_lock); 1982 read_unlock_bh(&dev_base_lock);
1984 return (dev); 1983 return (dev);
1985 } 1984 }
1986 dev = dev->next;
1987 } 1985 }
1988 read_unlock_bh(&dev_base_lock); 1986 read_unlock_bh(&dev_base_lock);
1989 } 1987 }