aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWambui Karuga <[email protected]>2019-10-13 21:47:50 +0300
committerGreg Kroah-Hartman <[email protected]>2019-10-14 15:36:58 +0200
commit388fa43d5979c400be9a73649058b33a2701cea0 (patch)
treed43d12f96bbb306d0c00e63578527fcfa9dcef28 /tools/perf/scripts/python
parent51a50b26c6dd296413350744722e4e5964c0991a (diff)
staging: vc04_services: use DIV_ROUND_UP helper macro
Replace open-coded division calculation with the DIV_ROUND_UP helper macro for better readability. Issue found using coccinelle: @@ expression n,d; @@ ( - ((n + d - 1) / d) + DIV_ROUND_UP(n,d) | - ((n + (d - 1)) / d) + DIV_ROUND_UP(n,d) ) Signed-off-by: Wambui Karuga <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions