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

Andrew Lunn andrew at lunn.ch
Thu Aug 29 05:54:18 PDT 2024


On Thu, Aug 29, 2024 at 02:31:15PM +0800, Jinjie Ruan 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 at huawei.com>
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

    Andrew



More information about the linux-arm-kernel mailing list