aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2024-03-30 19:08:46 +0000
committerJonathan Cameron <[email protected]>2024-04-06 11:29:06 +0100
commitcf84f1e0a8fd236a965c4b79a1de1509e05e0343 (patch)
treea42a7c5a1b836a2cbf305f0cb54e6df4ebf7efaf /tools/perf/scripts/python/netdev-times.py
parent8c40277ec673635a24fccf016510583065d30069 (diff)
iio: adc: ad7173: Use device_for_each_child_node_scoped() to simplify error paths.
This loop definition automatically releases the fwnode_handle on early exit such as the error cases seen here. This reducing boilerplate and the chance of a resource leak being introduced in future. Cc: Dumitru Ceclan <[email protected]> Reviewed-by: Nuno Sa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions