浏览代码

Merge branch 'master' into symcheck2

tags/v0.9.3
Holger Lubitz 17 年前
父节点
当前提交
59ad3dac40
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/drivers/net/sis900.c

+ 2
- 1
src/drivers/net/sis900.c 查看文件

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

正在加载...
取消
保存