Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756532Ab2JaJ5o (ORCPT ); Wed, 31 Oct 2012 05:57:44 -0400 Received: from mx0.aculab.com ([213.249.233.131]:35764 "HELO mx0.aculab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751847Ab2JaJ5l convert rfc822-to-8bit (ORCPT ); Wed, 31 Oct 2012 05:57:41 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT Subject: RE: [PATCH v3 06/10] net/macb: clean up ring buffer logic Date: Wed, 31 Oct 2012 09:48:09 -0000 Message-ID: In-Reply-To: <5090FFF5.6020109@atmel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: thread-topic: [PATCH v3 06/10] net/macb: clean up ring buffer logic thread-index: Ac23S5WaFhtsqL9BT8i/Rgf2M/dCTQAARJdg References: <75eb5df193c504e68ebff7d6a6a88d9a1cc678cb.1351591858.git.nicolas.ferre@atmel.com> <5090F67C.9020104@atmel.com> <5090FFF5.6020109@atmel.com> From: "David Laight" To: "Nicolas Ferre" , =?Windows-1252?Q?H=E5vard_Skinnemoen?= Cc: , , , , , , , Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 412 Lines: 15 > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/