]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of: property: Do some clean up with use of __free()
authorZhang Zekun <zhangzekun11@huawei.com>
Fri, 30 Aug 2024 02:06:26 +0000 (10:06 +0800)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 13 Sep 2024 19:01:34 +0000 (14:01 -0500)
commit69b860034c33429b5bf7eb89fb8c0ad269ad9cbd
tree6eae18c41899145c08906a0025087940769e6e64
parent0a543ac529fe18c7a6616d3d7af8fb08f1319fba
of: property: Do some clean up with use of __free()

__free() provides a scoped of_node_put() functionality to put the
device_node automatically, and we don't need to call of_node_put()
directly. Let's simplify the code a bit with the use of __free().

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Link: https://lore.kernel.org/r/20240830020626.115933-4-zhangzekun11@huawei.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/property.c