aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorMichael Walle <[email protected]>2024-04-29 12:11:13 +0000
committerPratyush Yadav <[email protected]>2024-04-29 15:36:48 +0000
commitc84b3925c7d6c649f5add009084ff409139f894d (patch)
tree943a2a0e9ab8f4c3afaaca1c6c278ef82a3c4672 /arch/powerpc/lib/code-patching.c
parentLinux 6.9-rc1 (diff)
downloadkernel-c84b3925c7d6c649f5add009084ff409139f894d.tar.gz
kernel-c84b3925c7d6c649f5add009084ff409139f894d.zip
mtd: spi-nor: replace unnecessary div64_u64() with div_u64()
Both occurrences of div64_u64() just have a u8 or u32 divisor. Use div_u64() instead. Many 32 bit architectures can optimize this variant better than a full 64 bit divide. Reported-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> [[email protected]: touched up commit message] Signed-off-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions