Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15792
b: refs/heads/master
c: 129372d
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Dec 12, 2005
1 parent cb9a07d commit 8bf5d0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2e46561cc1afa82b18b2fc6efc8510ec57c7d7d
refs/heads/master: 129372d0524c9124d5693f63c1d3c1ce2e3714ce
2 changes: 1 addition & 1 deletion trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ static int sky2_up(struct net_device *dev)
/* Modular subtraction in ring */
static inline int tx_dist(unsigned tail, unsigned head)
{
return (head >= tail ? head : head + TX_RING_SIZE) - tail;
return (head - tail) % TX_RING_SIZE;
}

/* Number of list elements available for next tx */
Expand Down

0 comments on commit 8bf5d0e

Please sign in to comment.