summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKousik Sanagavarapu <five231003@gmail.com>2024-04-10 16:01:16 +0300
committerMark Brown <broonie@kernel.org>2024-04-10 16:49:26 +0300
commitb0f3e56938f8cc8c4d606846270b879650ae7741 (patch)
tree034ca543753b32d976c289560eba49031b4d9971 /tools/perf/scripts/python/export-to-sqlite.py
parent563f8598cbc246a81d256e0e888dc085504caa90 (diff)
downloadlinux-b0f3e56938f8cc8c4d606846270b879650ae7741.tar.xz
spi: cadence-xspi: use for_each_available_child_of_node_scoped()
Refactor code for "is the node's child available?" check by using the corresponding macro instead, which reads more clearly. While at it, use scope-based cleanup instead of manual of_node_put() calls when getting platform data through cdns_xspi_of_get_plat_data(). This removes the unnecessary "node_child" declaration out of the loop's scope and auto cleans up "node_child" when it goes out of scope, even when we return early due to error. Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com> Link: https://msgid.link/r/20240410130205.179069-1-five231003@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions