mirror of
https://github.com/ipxe/ipxe
synced 2026-01-29 12:29:13 +03:00
[cs89x0] Simplify obscure loop syntax
This commit is contained in:
@@ -419,8 +419,8 @@ retry:
|
|||||||
ETH_ALEN/2);
|
ETH_ALEN/2);
|
||||||
outw(((t >> 8)&0xFF)|(t << 8), eth_nic_base + TX_FRAME_PORT);
|
outw(((t >> 8)&0xFF)|(t << 8), eth_nic_base + TX_FRAME_PORT);
|
||||||
outsw(eth_nic_base + TX_FRAME_PORT, p, (s+1)/2);
|
outsw(eth_nic_base + TX_FRAME_PORT, p, (s+1)/2);
|
||||||
for (sr = sr/2 - (s+1)/2 - ETH_ALEN - 1; sr-- > 0;
|
for (sr = sr/2 - (s+1)/2 - ETH_ALEN - 1; sr > 0; sr--)
|
||||||
outw(0, eth_nic_base + TX_FRAME_PORT));
|
outw(0, eth_nic_base + TX_FRAME_PORT);
|
||||||
|
|
||||||
/* wait for transfer to succeed */
|
/* wait for transfer to succeed */
|
||||||
for (tmo = currticks()+5*TICKS_PER_SEC;
|
for (tmo = currticks()+5*TICKS_PER_SEC;
|
||||||
|
|||||||
Reference in New Issue
Block a user