Thread (13 messages) 13 messages, 3 authors, 2024-08-30

Re: [PATCH -next 1/7] net: stmmac: dwmac-sun8i: Use for_each_child_of_node_scoped() and __free()

From: Jinjie Ruan <hidden>
Date: 2024-08-28 01:59:45
Also in: linux-sunxi, lkml, netdev


On 2024/8/27 20:52, Andrew Lunn wrote:
On Tue, Aug 27, 2024 at 03:52:13PM +0800, Jinjie Ruan wrote:
quoted
Avoid need to manually handle of_node_put() by using
for_each_child_of_node_scoped() and __free(), which can simplfy code.
Please could you split this in two. for_each_child_of_node_scoped() is
fine, it solves a common bug, forgetting to do a node_put() on a early
exit from the loop.
ok, that is nice.
I personally find __free() ugly, and would prefer to reject those
changes.

	Andrew
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help