diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2024-08-27 16:38:37 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2024-08-28 18:16:25 +0200 |
commit | ccf502193126e168cfca08ec3d8a2460057a0da5 (patch) | |
tree | 65862c1f257162f1dd7bbe91ba08be06a39bc5a1 /.rustfmt.toml | |
parent | firmware: arm_scmi: Fix trivial whitespace/coding style issues (diff) | |
download | linux-ccf502193126e168cfca08ec3d8a2460057a0da5.tar.xz linux-ccf502193126e168cfca08ec3d8a2460057a0da5.zip |
firmware: arm_scmi: Replace the use of of_node_put() to __free(device_node)
Use __free for device_node values, and thus drop calls to of_node_put.
The goal is simplify of_node reference cleanup by using this scope-based
of_node_put() cleanup to simplify function exit handling. When using __free
a resource is allocated within a block, it is automatically freed at the
end of the block.
This cleanup aligns well with the recent change in shmem.c to use __free
instead of explicit of_node_put() calls.
Message-Id: <20240827143838.1465913-3-sudeep.holla@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions