aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDoug Berger <[email protected]>2017-03-13 17:41:33 -0700
committerDavid S. Miller <[email protected]>2017-03-13 21:51:49 -0700
commitc298ede2fe21e034ab6ba4f15340fadc03ae9663 (patch)
tree8201f36ecb488e401e01e8a3cdd52f1149aaa891 /tools/perf/scripts/python
parent83ee102a6998f808ac4c626e8f72344f0a355527 (diff)
net: bcmgenet: simplify circular pointer arithmetic
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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions