Re: [PATCH net-next v3 10/13] net: dsa: microchip: Use scoped function to simplfy code
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-08-29 12:58:58
Also in:
linux-arm-kernel, linux-sunxi
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-08-29 12:58:58
Also in:
linux-arm-kernel, linux-sunxi
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 <redacted> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew