2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-26 03:09:12 +00:00

[cs89x0] Simplify obscure loop syntax

This commit is contained in:
Michael Brown 2008-10-12 00:39:57 +01:00
parent 0b5c39d167
commit b40b4f2dbf

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;