Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net/wan: fix sparse warnings: make do-while a compound statement

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>

authored by

Hannes Eder and committed by
David S. Miller
d157e023 ec1d1ebb

+4 -4
+4 -4
drivers/net/wan/wanxl.c
··· 410 410 writel(1 << (DOORBELL_TO_CARD_OPEN_0 + port->node), dbr); 411 411 412 412 timeout = jiffies + HZ; 413 - do 413 + do { 414 414 if (get_status(port)->open) { 415 415 netif_start_queue(dev); 416 416 return 0; 417 417 } 418 - while (time_after(timeout, jiffies)); 418 + } while (time_after(timeout, jiffies)); 419 419 420 420 printk(KERN_ERR "%s: unable to open port\n", dev->name); 421 421 /* ask the card to close the port, should it be still alive */ ··· 437 437 port->card->plx + PLX_DOORBELL_TO_CARD); 438 438 439 439 timeout = jiffies + HZ; 440 - do 440 + do { 441 441 if (!get_status(port)->open) 442 442 break; 443 - while (time_after(timeout, jiffies)); 443 + } while (time_after(timeout, jiffies)); 444 444 445 445 if (get_status(port)->open) 446 446 printk(KERN_ERR "%s: unable to close port\n", dev->name);