Pārlūkot izejas kodu

Inhibit a spurious warning on GCC 4.0.1

tags/v0.9.3
Michael Brown 17 gadus atpakaļ
vecāks
revīzija
84c347c7de
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      src/drivers/net/sis900.c

+ 2
- 1
src/drivers/net/sis900.c Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt