diff options
| author | Javier Carrasco <[email protected]> | 2024-09-25 15:49:46 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-10-04 13:11:59 +0000 |
| commit | 4904f9aa35b1b5f94cc388320f6835bc73f2ab87 (patch) | |
| tree | 037a50e699766dd23d1aaec8cacb2a1f20bc67b0 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | usb: atm: Correct some typos (diff) | |
| download | kernel-4904f9aa35b1b5f94cc388320f6835bc73f2ab87.tar.gz kernel-4904f9aa35b1b5f94cc388320f6835bc73f2ab87.zip | |
usb: typec: ucsi: glink: use device_for_each_child_node_scoped()
Use the scoped variant of `device_for_each_child_node()` to
automatically handle early exits.
This prevents memory leaks if new error paths are introduced,
as no explicit refcount decrement via `fwnode_handle_put()` is needed.
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
