Re: [PATCH net-next v2 10/13] net: dsa: microchip: Use scoped function to simplfy code

From: Jonathan Cameron
Date: Wed Aug 28 2024 - 08:50:39 EST


On Wed, 28 Aug 2024 11:23:40 +0800
Jinjie Ruan <ruanjinjie@xxxxxxxxxx> wrote:

> Avoids the need for manual cleanup of_node_put() in early exits
> from the loop by using for_each_available_child_of_node_scoped().
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>