[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171440802093.2111608.15033080205921005255.robh@kernel.org>
Date: Mon, 29 Apr 2024 11:27:17 -0500
From: Rob Herring <robh@...nel.org>
To: Shresth Prasad <shresthprasad7@...il.com>
Cc: javier.carrasco.cruz@...il.com, skhan@...uxfoundation.org,
devicetree@...r.kernel.org, saravanak@...gle.com,
linux-kernel@...r.kernel.org, Julia Lawall <julia.lawall@...ia.fr>
Subject: Re: [PATCH][next] of: property: Use scope based cleanup on port_node
On Sun, 28 Apr 2024 17:22:27 +0530, Shresth Prasad wrote:
> Use __free cleanup handler which ensures that the resource is freed when
> it goes out of scope, thus removing the need to manually clean it up
> using of_node_put.
>
> Suggested-by: Julia Lawall <julia.lawall@...ia.fr>
> Signed-off-by: Shresth Prasad <shresthprasad7@...il.com>
> ---
> Rob Herring <robh@...nel.org> sent a patch fixing similar cases in
> property.c but seems to have missed this one. Please let me know if this
> is mistake, or if it was left unchanged for a reason.
>
> drivers/of/property.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
Applied, thanks!
Powered by blists - more mailing lists