Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122916
b: refs/heads/master
c: d157e02
h: refs/heads/master
v: v3
  • Loading branch information
Hannes Eder authored and David S. Miller committed Dec 26, 2008
1 parent 8bbb3b5 commit d0e2281
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec1d1ebbb3bdc9807474be28c29efa155d15b850
refs/heads/master: d157e0230f205f5dd646c4e0985030367de7aa4c
8 changes: 4 additions & 4 deletions trunk/drivers/net/wan/wanxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,12 @@ static int wanxl_open(struct net_device *dev)
writel(1 << (DOORBELL_TO_CARD_OPEN_0 + port->node), dbr);

timeout = jiffies + HZ;
do
do {
if (get_status(port)->open) {
netif_start_queue(dev);
return 0;
}
while (time_after(timeout, jiffies));
} while (time_after(timeout, jiffies));

printk(KERN_ERR "%s: unable to open port\n", dev->name);
/* ask the card to close the port, should it be still alive */
Expand All @@ -437,10 +437,10 @@ static int wanxl_close(struct net_device *dev)
port->card->plx + PLX_DOORBELL_TO_CARD);

timeout = jiffies + HZ;
do
do {
if (!get_status(port)->open)
break;
while (time_after(timeout, jiffies));
} while (time_after(timeout, jiffies));

if (get_status(port)->open)
printk(KERN_ERR "%s: unable to close port\n", dev->name);
Expand Down

0 comments on commit d0e2281

Please sign in to comment.