Skip to content

Commit

Permalink
[cs89x0] Simplify obscure loop syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Oct 11, 2008
1 parent 0b5c39d commit b40b4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/net/cs89x0.c
Expand Up @@ -419,8 +419,8 @@ static void cs89x0_transmit(
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;
Expand Down

0 comments on commit b40b4f2

Please sign in to comment.