Subject: Re: [PATCH 19/20] powerpc/xive: convert to of_property_for_each_u32_new()

From: Michael Ellerman <[email-masked]>
Date: Wed, 03 Jul 2024 21:36:47 +1000

Luca Ceresoli <[email-masked]> writes:
> Simplify code using of_property_for_each_u32_new() as the two additional
> parameters in of_property_for_each_u32() are not used here.
>
> In this case only the 'prop' variable can be removed and not 'reg',
> because 'reg' is used in _previous_ lines of the same function. There
> is no side effect because the of_property_for_each_u32() macro being
> removed would anyway write 'reg' bwfore reading its value, and 'reg'
> is not used in _following_ lines.
>
> Signed-off-by: Luca Ceresoli <[email-masked]>
> ---
>  arch/powerpc/sysdev/xive/spapr.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Acked-by: Michael Ellerman <[email-masked]> (powerpc)

cheers