aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/wavelan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/wavelan.c b/drivers/net/wireless/wavelan.c
index 688bdea8f13a..b728541f2fb5 100644
--- a/drivers/net/wireless/wavelan.c
+++ b/drivers/net/wireless/wavelan.c
@@ -4281,8 +4281,7 @@ int __init init_module(void)
4281 4281
4282 4282
4283 /* Loop on all possible base addresses. */ 4283 /* Loop on all possible base addresses. */
4284 i = -1; 4284 for (i = 0; i < ARRAY_SIZE(io) && io[i] != 0; i++) {
4285 while ((io[++i] != 0) && (i < ARRAY_SIZE(io))) {
4286 struct net_device *dev = alloc_etherdev(sizeof(net_local)); 4285 struct net_device *dev = alloc_etherdev(sizeof(net_local));
4287 if (!dev) 4286 if (!dev)
4288 break; 4287 break;