diff options
| author | Wambui Karuga <[email protected]> | 2019-10-13 21:47:50 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-14 15:36:58 +0200 |
| commit | 388fa43d5979c400be9a73649058b33a2701cea0 (patch) | |
| tree | d43d12f96bbb306d0c00e63578527fcfa9dcef28 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 51a50b26c6dd296413350744722e4e5964c0991a (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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions