Loading drivers/net/sky2.c +1 −1 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading
drivers/net/sky2.c +1 −1 Original line number Diff line number Diff line Loading @@ -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 */ Loading