summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorShivani Gupta <shivani07g@gmail.com>2024-04-23 05:07:27 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2024-04-23 10:21:46 +0300
commitd769eaef2a8d668035e34a19e3282b4222d6e782 (patch)
treeb3241c63c9146493340960ee961a4b0b5c112480 /tools/perf/scripts/python/exported-sql-viewer.py
parentb69ec356db1a7c4703b1a9edc82ee1dfdd296b97 (diff)
downloadlinux-d769eaef2a8d668035e34a19e3282b4222d6e782.tar.xz
cpufreq: ti: Implement scope-based cleanup in ti_cpufreq_match_node()
Modify the ti_cpufreq_match_node() function to utilize the __free() cleanup handler for automatically releasing the device node when it goes out of scope. By moving the declaration to the initialization, the patch ensures that the device node is properly managed throughout the function's scope, thus eliminating the need for manual invocation of of_node_put(). This approach reduces the potential for memory leaks. Suggested-by: Julia Lawall <julia.lawall@inria.fr> Signed-off-by: Shivani Gupta <shivani07g@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