diff options
| author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-09-26 18:08:38 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-10-05 12:09:14 +0100 |
| commit | 140eff34e10262f34201c21e1c08f1aeebe9325d (patch) | |
| tree | 32d80cc14d4afded7e5c379cf70b176ff7c26fb4 /scripts/gdb/linux/stackdepot.py | |
| parent | db44b37a20c823afeb7c550cf767d9b218681ee1 (diff) | |
iio: adc: qcom-spmi-vadc: 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 <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240926-iio_device_for_each_child_node_scoped-v1-2-64ca8a424578@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions
