aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-26 03:07:45 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 03:07:45 -0500
commitec1d1ebbb3bdc9807474be28c29efa155d15b850 (patch)
treef5a3773806295989c1c1756bb1311772e97a1ca1
parent27cd6ae5619084f363630683e77d70be38075afe (diff)
drivers/net/tulip: fix sparse warnings: make do-while a compound statement
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>
-rw-r--r--drivers/net/tulip/de2104x.c4
-rw-r--r--drivers/net/tulip/tulip_core.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c
index 3aa60fad68c7..5166be930a52 100644
--- a/drivers/net/tulip/de2104x.c
+++ b/drivers/net/tulip/de2104x.c
@@ -1691,9 +1691,9 @@ static void __devinit de21040_get_mac_address (struct de_private *de)
1691 1691
1692 for (i = 0; i < 6; i++) { 1692 for (i = 0; i < 6; i++) {
1693 int value, boguscnt = 100000; 1693 int value, boguscnt = 100000;
1694 do 1694 do {
1695 value = dr32(ROMCmd); 1695 value = dr32(ROMCmd);
1696 while (value < 0 && --boguscnt > 0); 1696 } while (value < 0 && --boguscnt > 0);
1697 de->dev->dev_addr[i] = value; 1697 de->dev->dev_addr[i] = value;
1698 udelay(1); 1698 udelay(1);
1699 if (boguscnt <= 0) 1699 if (boguscnt <= 0)
diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c
index 1c5ef230b770..ff84babb3ff3 100644
--- a/drivers/net/tulip/tulip_core.c
+++ b/drivers/net/tulip/tulip_core.c
@@ -1429,9 +1429,9 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
1429 for (i = 0; i < 3; i++) { 1429 for (i = 0; i < 3; i++) {
1430 int value, boguscnt = 100000; 1430 int value, boguscnt = 100000;
1431 iowrite32(0x600 | i, ioaddr + 0x98); 1431 iowrite32(0x600 | i, ioaddr + 0x98);
1432 do 1432 do {
1433 value = ioread32(ioaddr + CSR9); 1433 value = ioread32(ioaddr + CSR9);
1434 while (value < 0 && --boguscnt > 0); 1434 } while (value < 0 && --boguscnt > 0);
1435 put_unaligned_le16(value, ((__le16 *)dev->dev_addr) + i); 1435 put_unaligned_le16(value, ((__le16 *)dev->dev_addr) + i);
1436 sum += value & 0xffff; 1436 sum += value & 0xffff;
1437 } 1437 }