aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wan/wanxl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c
index 88459490ecd2..4bffb67ebcae 100644
--- a/drivers/net/wan/wanxl.c
+++ b/drivers/net/wan/wanxl.c
@@ -410,12 +410,12 @@ static int wanxl_open(struct net_device *dev)
410 writel(1 << (DOORBELL_TO_CARD_OPEN_0 + port->node), dbr); 410 writel(1 << (DOORBELL_TO_CARD_OPEN_0 + port->node), dbr);
411 411
412 timeout = jiffies + HZ; 412 timeout = jiffies + HZ;
413 do 413 do {
414 if (get_status(port)->open) { 414 if (get_status(port)->open) {
415 netif_start_queue(dev); 415 netif_start_queue(dev);
416 return 0; 416 return 0;
417 } 417 }
418 while (time_after(timeout, jiffies)); 418 } while (time_after(timeout, jiffies));
419 419
420 printk(KERN_ERR "%s: unable to open port\n", dev->name); 420 printk(KERN_ERR "%s: unable to open port\n", dev->name);
421 /* ask the card to close the port, should it be still alive */ 421 /* ask the card to close the port, should it be still alive */
@@ -437,10 +437,10 @@ static int wanxl_close(struct net_device *dev)
437 port->card->plx + PLX_DOORBELL_TO_CARD); 437 port->card->plx + PLX_DOORBELL_TO_CARD);
438 438
439 timeout = jiffies + HZ; 439 timeout = jiffies + HZ;
440 do 440 do {
441 if (!get_status(port)->open) 441 if (!get_status(port)->open)
442 break; 442 break;
443 while (time_after(timeout, jiffies)); 443 } while (time_after(timeout, jiffies));
444 444
445 if (get_status(port)->open) 445 if (get_status(port)->open)
446 printk(KERN_ERR "%s: unable to close port\n", dev->name); 446 printk(KERN_ERR "%s: unable to close port\n", dev->name);