Skip to content
Commit 3fe5a2b9 authored by Shresth Prasad's avatar Shresth Prasad Committed by Rob Herring (Arm)
Browse files

of: property: Use scope based cleanup on port_node



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: default avatarJulia Lawall <julia.lawall@inria.fr>
Signed-off-by: default avatarShresth Prasad <shresthprasad7@gmail.com>
Link: https://lore.kernel.org/r/20240428115226.41345-2-shresthprasad7@gmail.com


Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent c56436ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment