Re: [PATCH net-next 03/12] net: bcmgenet: simplify circular pointer arithmetic

From: Florian Fainelli
Date: Mon Mar 13 2017 - 20:55:13 EST


On 03/13/2017 05:41 PM, Doug Berger wrote:
> A 2's complement subtraction will always do a borrow, so masking
> off the sign bits is the same as conditionally adding (mask+1).
>
> Signed-off-by: Doug Berger <opendmb@xxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian