diff options
author | Javier Carrasco <[email protected]> | 2024-09-26 18:08:39 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-10-05 12:09:14 +0100 |
commit | 0c785436604f93196be93565a8bc0cf27c696f08 (patch) | |
tree | d678c4c3a2f52598a4b9c9da8af910b0536fc62b /tools/perf/scripts/python/flamegraph.py | |
parent | 140eff34e10262f34201c21e1c08f1aeebe9325d (diff) |
iio: adc: sun20i-gpadc: use scoped device_for_each_child_node()
Switch to device_for_each_child_node_scoped() to simplify the code by
removing the need for calls to fwnode_handle_put() in the error path.
This prevents possible memory leaks if new error paths are added without
the required call to fwnode_handle_put().
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
Link: https://patch.msgid.link/20240926-iio_device_for_each_child_node_scoped-v1-3-64ca8a424578@gmail.com
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions