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

Jonathan Cameron Jonathan.Cameron at Huawei.com
Wed Aug 28 05:50:23 PDT 2024


On Wed, 28 Aug 2024 11:23:40 +0800
Jinjie Ruan <ruanjinjie at huawei.com> 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>




More information about the linux-arm-kernel mailing list