[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ec1f31be-40b1-41b0-9170-5f7413aae914@lunn.ch>
Date: Thu, 29 Aug 2024 14:54:18 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Jinjie Ruan <ruanjinjie@...wei.com>
Cc: woojung.huh@...rochip.com, f.fainelli@...il.com, olteanv@...il.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, linus.walleij@...aro.org, alsi@...g-olufsen.dk,
justin.chen@...adcom.com, sebastian.hesselbarth@...il.com,
alexandre.torgue@...s.st.com, joabreu@...opsys.com, wens@...e.org,
jernej.skrabec@...il.com, samuel@...lland.org,
mcoquelin.stm32@...il.com, hkallweit1@...il.com,
linux@...linux.org.uk, ansuelsmth@...il.com,
UNGLinuxDriver@...rochip.com, netdev@...r.kernel.org,
bcm-kernel-feedback-list@...adcom.com,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev,
krzk@...nel.org, jic23@...nel.org
Subject: Re: [PATCH net-next v3 10/13] net: dsa: microchip: Use scoped
function to simplfy code
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@...wei.com>
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@...wei.com>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists