[PATCH] mtd: rawnand: tegra: Simplify maximum determination in tegra_nand_setup_timing()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Mar 3 02:43:04 PST 2025
Hi,
On 28/02/2025 at 19:33:10 +01, Markus Elfring <Markus.Elfring at web.de> wrote:
> From: Markus Elfring <elfring at users.sourceforge.net>
> Date: Fri, 28 Feb 2025 19:19:45 +0100
>
> Reduce nested max() calls by a single max3() call in this
> function implementation.
>
> The source code was transformed by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring at users.sourceforge.net>
I am sorry, I do not see what gets simplified. max(max(a,b),max(c,d))
looks simpler than max3(a,b,max(c,d)). Does it bring something in terms
of optimization?
Thanks,
Miquèl
More information about the linux-mtd
mailing list