[PATCH -next 2/7] net: dsa: realtek: Use for_each_child_of_node_scoped() and __free()
Linus Walleij
linus.walleij at linaro.org
Fri Aug 30 15:17:41 PDT 2024
On Tue, Aug 27, 2024 at 9:45 AM Jinjie Ruan <ruanjinjie at huawei.com> 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 at huawei.com>
Neat!
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list