diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-09-27 01:20:55 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-10-09 15:16:42 +0100 |
commit | a361af3c1622d4b8ede54493fa88633fb12201d0 (patch) | |
tree | 6170a46616cbfd4273aed7acfe62ec9dc1537012 /block/Kconfig | |
parent | f64dd42a4f939fb5acc3f3568ef2118487617996 (diff) |
leds: aw200xx: Switch to device_for_each_child_node_scoped()
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 paths.
This also 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://lore.kernel.org/r/20240927-leds_device_for_each_child_node_scoped-v1-4-95c0614b38c8@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'block/Kconfig')
0 files changed, 0 insertions, 0 deletions