diff options
| author | Wambui Karuga <[email protected]> | 2019-10-13 22:10:27 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-14 15:36:58 +0200 |
| commit | 807411911d99fe13ade4c02db4606f2df672f589 (patch) | |
| tree | 9947c5f3d99e0da526c06ef94e739925b81976ab /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 388fa43d5979c400be9a73649058b33a2701cea0 (diff) | |
staging: rtl8723bs: use DIV_ROUND_UP helper macro
Use the DIV_ROUND_UP macro to replace open-coded divisor calculation
to improve 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]>
Acked-by: Julia Lawall <[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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions