Re: [PATCH v2] net: natsemi: ns83820: add checks for dma mapping error
From: David Miller
Date: Mon Apr 24 2017 - 14:05:16 EST
From: Alexey Khoroshilov <khoroshilov@xxxxxxxxx>
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.