Browse Source

[cs89x0] Simplify obscure loop syntax

tags/v0.9.6
Michael Brown 16 years ago
parent
commit
b40b4f2dbf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/net/cs89x0.c

+ 2
- 2
src/drivers/net/cs89x0.c View File

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

Loading…
Cancel
Save