diff options
| author | 2024-03-30 19:08:46 +0000 | |
|---|---|---|
| committer | 2024-04-06 11:29:06 +0100 | |
| commit | cf84f1e0a8fd236a965c4b79a1de1509e05e0343 (patch) | |
| tree | a42a7c5a1b836a2cbf305f0cb54e6df4ebf7efaf /scripts/Makefile.thinlto | |
| parent | iio: adc: ad4130: Use device_for_each_child_node_scoped() to simplify error paths. (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 <mitrutzceclan@gmail.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240330190849.1321065-6-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
