mirror of https://github.com/ipxe/ipxe.git
Inhibit a spurious warning on GCC 4.0.1
parent
2c7ffa8c27
commit
84c347c7de
|
@ -872,8 +872,9 @@ sis900_read_mode(struct nic *nic __unused, int phy_addr, int *speed, int *duplex
|
||||||
u16 phy_id0, phy_id1;
|
u16 phy_id0, phy_id1;
|
||||||
|
|
||||||
/* STSOUT register is Latched on Transition, read operation updates it */
|
/* STSOUT register is Latched on Transition, read operation updates it */
|
||||||
while (i++ < 2)
|
do {
|
||||||
status = sis900_mdio_read(phy_addr, MII_STSOUT);
|
status = sis900_mdio_read(phy_addr, MII_STSOUT);
|
||||||
|
} while (i++ < 2);
|
||||||
|
|
||||||
*speed = HW_SPEED_10_MBPS;
|
*speed = HW_SPEED_10_MBPS;
|
||||||
*duplex = FDX_CAPABLE_HALF_SELECTED;
|
*duplex = FDX_CAPABLE_HALF_SELECTED;
|
||||||
|
|
Loading…
Reference in New Issue