drivers/net/tulip: fix sparse warnings: make do-while a compound statement
authorHannes Eder <hannes@hanneseder.net>
Fri, 26 Dec 2008 08:07:45 +0000 (00:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 08:07:45 +0000 (00:07 -0800)
Fix this sparse warnings:

  drivers/net/tulip/de2104x.c:1695:4: warning: do-while statement is not a compound statement
  drivers/net/tulip/tulip_core.c:1433:5: 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/tulip/de2104x.c
drivers/net/tulip/tulip_core.c

index 3aa60fad68c7aa1b20b11a6616f650d21834eba2..5166be930a52c204f38d99394d4cdbff1fa6be94 100644 (file)
@@ -1691,9 +1691,9 @@ static void __devinit de21040_get_mac_address (struct de_private *de)
 
        for (i = 0; i < 6; i++) {
                int value, boguscnt = 100000;
-               do
+               do {
                        value = dr32(ROMCmd);
-               while (value < 0 && --boguscnt > 0);
+               while (value < 0 && --boguscnt > 0);
                de->dev->dev_addr[i] = value;
                udelay(1);
                if (boguscnt <= 0)
index 1c5ef230b7709d4db904ff5ba74a70c61a11e9a1..ff84babb3ff38af2954b8e348b04e40512171014 100644 (file)
@@ -1429,9 +1429,9 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
                for (i = 0; i < 3; i++) {
                        int value, boguscnt = 100000;
                        iowrite32(0x600 | i, ioaddr + 0x98);
-                       do
+                       do {
                                value = ioread32(ioaddr + CSR9);
-                       while (value < 0  && --boguscnt > 0);
+                       while (value < 0  && --boguscnt > 0);
                        put_unaligned_le16(value, ((__le16 *)dev->dev_addr) + i);
                        sum += value & 0xffff;
                }