diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-04-07 22:15:29 +0200 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-04-19 11:55:44 +0530 |
commit | b5e230aa8d0359bba49659c8358074755c6eb9e4 (patch) | |
tree | fcd6cb79874a7d4bc65e19065ce858c0e2136a48 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4cece764965020c22cff7665b18a012006359095 (diff) |
cpupfreq: tegra124: eliminate uses of of_node_put()
Make use of the __free() cleanup handler to automatically free nodes
when they get out of scope. Only the probe function is affected by this
modification.
Given that this mechanism requires the node to be initialized, its
initialization and the value check have been moved to the top of the
function.
After removing uses of of_node_put(), the jump to out_put_np is no
longer necessary.
Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions