]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Simplify circular pointer arithmetic
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 23 Mar 2017 17:36:48 +0000 (10:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Mar 2017 19:53:15 +0000 (12:53 -0700)
commit989e1590eaaee0c0576335747405480236c5c2a2
tree4b8100955fdfe8f41a3666eaac1f540615746772
parent660701b084b87b024c09b307752dc22755d4690f
net: systemport: Simplify circular pointer arithmetic

Similar to e2cc7b81eb21 ("net: bcmgenet: simplify circular pointer
arithmetic") we don't need to complex arthimetic since we always have a
ring size that is a power of 2.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c