aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2024-03-30 18:53:01 +0000
committerJonathan Cameron <[email protected]>2024-04-13 10:38:00 +0100
commit24622259e3a8f7df1972aafd801b888443e44363 (patch)
tree0a09dcd414ead7b636211cc688ac304ea003b233 /tools/perf/scripts/python/bin
parent3735ca0b072656c3aa2cedc617a5e639b583a472 (diff)
iio: adc: stm32: Use device_for_each_child_node_scoped()
Switching to the _scoped() version removes the need for manual calling of fwnode_handle_put() in the paths where the code exits the loop early. In this case that's all in error paths. Note this would have made the bug fixed in the previous path much less likely as it allows for direct returns. Took advantage of dev_err_probe() to futher simplify things given no longer a need for the goto err. Cc: Olivier Moysan <[email protected]> Tested-by: Fabrice Gasnier <[email protected]> Acked-by: Fabrice Gasnier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions