Re: [PATCH -next 2/7] net: dsa: realtek: Use for_each_child_of_node_scoped() and __free()
From: Linus Walleij
Date: Fri Aug 30 2024 - 18:18:02 EST
On Tue, Aug 27, 2024 at 9:45 AM Jinjie Ruan <ruanjinjie@xxxxxxxxxx> wrote:
> Avoid need to manually handle of_node_put() by using
> for_each_child_of_node_scoped() and __free(), which can simplfy code.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>
Neat!
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij