Re: [PATCH 2/3] memory: emif: Simplify code handling CONFIG_OF

From: Krzysztof Kozlowski
Date: Tue Jan 23 2024 - 10:19:09 EST


On 17/12/2023 20:31, Uwe Kleine-König wrote:
> The first thing that of_get_memory_device_details() does is calling
> of_parse_phandle(). With CONFIG_OF=n this returns NULL in a static
> inline function. So the compiler can determine that
> of_get_memory_device_details() also returns NULL. bloat-o-meter confirms
> that this patch has no effects on the size of the generated code for
> CONFIG_OF=n builds.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> ---
> drivers/memory/emif.c | 10 ----------
> 1 file changed, 10 deletions(-)

Applied.

Best regards,
Krzysztof