aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2024-03-06 14:25:47 +0000
committerAndrew Morton <[email protected]>2024-03-12 20:09:23 +0000
commitadc2c8d0b36f8c97cd3bf7c1420f8d61ee08ce4d (patch)
treeffe2d65633bec23f031e45e3376dc7f83ca35cf8 /lib/assoc_array.c
parentmul_u64_u64_div_u64: increase precision by conditionally swapping a and b (diff)
downloadkernel-adc2c8d0b36f8c97cd3bf7c1420f8d61ee08ce4d.tar.gz
kernel-adc2c8d0b36f8c97cd3bf7c1420f8d61ee08ce4d.zip
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 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions