diff options
author | Thorsten Blum <[email protected]> | 2024-03-06 23:25:47 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-03-12 13:09:23 -0700 |
commit | adc2c8d0b36f8c97cd3bf7c1420f8d61ee08ce4d (patch) | |
tree | ffe2d65633bec23f031e45e3376dc7f83ca35cf8 /tools/perf/util/trace-event-scripting.c | |
parent | 8c86fb68ffcb0d8a5418e171c8d359d712912e9b (diff) |
nilfs2: use div64_ul() instead of do_div()
Fixes Coccinelle/coccicheck warnings reported by do_div.cocci.
Compared to do_div(), div64_ul() does not implicitly cast the divisor and
does not unnecessarily calculate the remainder.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Thorsten Blum <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions