include/linux/math.h: fix mult_frac() multiple argument evaluation bug
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 20 May 2023 18:25:19 +0000 (21:25 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 10 Jun 2023 00:44:22 +0000 (17:44 -0700)
commit048a9883267f9b8f8e05dca9e9e8e6f991eea61e
treec664cb33912840f8e3d7e852337cc3bdeab6ccc8
parentd7a0fe9ef6d6484fca4ba55c19091932337d4272
include/linux/math.h: fix mult_frac() multiple argument evaluation bug

mult_frac() evaluates _all_ arguments multiple times in the body.

Clarify comment while I'm at it.

Link: https://lkml.kernel.org/r/f9f9fdbb-ec8e-4f5e-a998-2a58627a1a43@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/math.h