diff options
author | MarileneGarcia <marilene.agarcia@gmail.com> | 2024-07-05 09:48:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-05 09:55:04 +0200 |
commit | 5fecb932607d83d37a703c731268e9d9051457f5 (patch) | |
tree | 3e7acee80ac0e04ab2d99c432b6dd6173e64f98a /scripts/relocs_check.sh | |
parent | dt-bindings: nvmem: mediatek: efuse: add support for MT7981 (diff) | |
download | linux-5fecb932607d83d37a703c731268e9d9051457f5.tar.xz linux-5fecb932607d83d37a703c731268e9d9051457f5.zip |
nvmem: meson-efuse: Replacing the use of of_node_put to __free
Use __free for device_node values, and thus drop calls to
of_node_put.
The goal is to reduce memory management issues 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.
Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: MarileneGarcia <marilene.agarcia@gmail.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20240705074852.423202-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/relocs_check.sh')
0 files changed, 0 insertions, 0 deletions