diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-09-26 18:08:40 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-10-05 12:09:14 +0100 |
commit | 4010e7894b83ff5d21ca5c1dce95d719dbe42d80 (patch) | |
tree | 77a36dc3c015397e2940521727aabbd4789a704f /tools/perf/scripts/python/libxed.py | |
parent | 0c785436604f93196be93565a8bc0cf27c696f08 (diff) |
iio: adc: ad5755: 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, in
this particular case dropping the jump to error_out as well.
This prevents possible memory leaks if new error paths are added without
the required call to fwnode_handle_put().
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240926-iio_device_for_each_child_node_scoped-v1-4-64ca8a424578@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions