Re: [PATCH] mm: mempool: Optimize the mempool_create_node function
From: Florian Fainelli
Date: Wed Mar 15 2023 - 13:53:24 EST
On 3/15/23 12:12, Li zeming wrote:
The pool pointer variable gets the kzalloc_node function return value
directly at definition time, which should be more concise.
Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
This looks pretty useless as a change, the generated code is going to be
the same before/after, it is also not more readable, and it is
definitively not an optimization in the sense that optimization should
be used as meaning: the code is more efficient after that change.
--
Florian