[PATCH v3 06/10] net/macb: clean up ring buffer logic

David Laight David.Laight at ACULAB.COM
Wed Oct 31 05:48:09 EDT 2012


> 	return (TX_RING_SIZE - (bp->tx_head - bp->tx_tail) & (TX_RING_SIZE - 1));

Is equivalent to:

	return (bp->tx_tail - bp->tx_head) & (TX_RING_SIZE - 1));

	David






More information about the linux-arm-kernel mailing list