aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-09-25 15:49:46 +0000
committerGreg Kroah-Hartman <[email protected]>2024-10-04 13:11:59 +0000
commit4904f9aa35b1b5f94cc388320f6835bc73f2ab87 (patch)
tree037a50e699766dd23d1aaec8cacb2a1f20bc67b0 /drivers/usb/cdns3/cdns3-starfive.c
parentusb: atm: Correct some typos (diff)
downloadkernel-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