lkml.org 
[lkml]   [2012]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: [PATCH v3 06/10] net/macb: clean up ring buffer logic
Date
From
> 	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





\
 
 \ /
  Last update: 2012-10-31 11:41    [W:1.309 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site