]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net/wan: fix sparse warnings: make do-while a compound statement
authorHannes Eder <hannes@hanneseder.net>
Mon, 22 Dec 2008 09:17:55 +0000 (09:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 08:09:51 +0000 (00:09 -0800)
Fix this sparse warnings:

  drivers/net/wan/wanxl.c:414:3: warning: do-while statement is not a compound statement
  drivers/net/wan/wanxl.c:441:3: warning: do-while statement is not a compound statement

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/wanxl.c

index 88459490ecd2e3bcfeb5f0b48060ca17127d482c..4bffb67ebcae32b9fbd2676bcb6e151fa16f9edf 100644 (file)
@@ -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 */
@@ -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);