[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170424.140455.190776456596552748.davem@davemloft.net>
Date: Mon, 24 Apr 2017 14:04:55 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: khoroshilov@...ras.ru
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
ldv-project@...uxtesting.org
Subject: Re: [PATCH v2] net: natsemi: ns83820: add checks for dma mapping
error
From: Alexey Khoroshilov <khoroshilov@...ras.ru>
Date: Sat, 22 Apr 2017 16:06:05 +0300
> + free_idx = (free_idx + NR_TX_DESC - 1) % NR_TX_DESC;
This is more simply stated as "(free_idx - 1) % NR_TX_DESC.
Powered by blists - more mailing lists