Ver código fonte

Inhibit a spurious warning on GCC 4.0.1

tags/v0.9.3
Michael Brown 17 anos atrás
pai
commit
84c347c7de
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/drivers/net/sis900.c

+ 2
- 1
src/drivers/net/sis900.c Ver arquivo

@@ -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;

Carregando…
Cancelar
Salvar