mtd: rawnand: tegra: Simplify maximum determination in tegra_nand_setup_timing()

Markus Elfring Markus.Elfring at web.de
Mon Mar 3 02:55:49 PST 2025


> 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)).

You would eventually like to express that a maximum should be determined
from three (or even four?) values.
https://elixir.bootlin.com/linux/v6.14-rc4/source/include/linux/minmax.h#L147


>                                        Does it bring something in terms
> of optimization?
Corresponding effects depend on various factors, don't they?

Regards,
Markus



More information about the linux-mtd mailing list