Browse Source

Inhibit a spurious warning on GCC 4.0.1

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
84c347c7de
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/net/sis900.c

+ 2
- 1
src/drivers/net/sis900.c View File

872
     u16 phy_id0, phy_id1;
872
     u16 phy_id0, phy_id1;
873
         
873
         
874
     /* STSOUT register is Latched on Transition, read operation updates it */
874
     /* STSOUT register is Latched on Transition, read operation updates it */
875
-    while (i++ < 2)
875
+    do {
876
         status = sis900_mdio_read(phy_addr, MII_STSOUT);
876
         status = sis900_mdio_read(phy_addr, MII_STSOUT);
877
+    } while (i++ < 2);
877
 
878
 
878
     *speed = HW_SPEED_10_MBPS;
879
     *speed = HW_SPEED_10_MBPS;
879
     *duplex = FDX_CAPABLE_HALF_SELECTED;
880
     *duplex = FDX_CAPABLE_HALF_SELECTED;

Loading…
Cancel
Save