david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[cs89x0] Simplify obscure loop syntax

This commit is contained in:
Michael Brown 2008-10-12 00:39:57 +01:00
parent 0b5c39d167
commit b40b4f2dbf
1 changed files with 2 additions and 2 deletions

View File

@ -419,8 +419,8 @@ retry:
ETH_ALEN/2);
outw(((t >> 8)&0xFF)|(t << 8), eth_nic_base + TX_FRAME_PORT);
outsw(eth_nic_base + TX_FRAME_PORT, p, (s+1)/2);
for (sr = sr/2 - (s+1)/2 - ETH_ALEN - 1; sr-- > 0;
outw(0, eth_nic_base + TX_FRAME_PORT));
for (sr = sr/2 - (s+1)/2 - ETH_ALEN - 1; sr > 0; sr--)
outw(0, eth_nic_base + TX_FRAME_PORT);
/* wait for transfer to succeed */
for (tmo = currticks()+5*TICKS_PER_SEC;