Skip to content
Commit e97dccd3 authored by Javier Carrasco's avatar Javier Carrasco Committed by Jakub Kicinski
Browse files

net: hns: hisilicon: hns_dsaf_mac: switch to scoped device_for_each_child_node()



Use device_for_each_child_node_scoped() to simplify the code by removing
the need for explicit calls to fwnode_handle_put() in every error path.
This approach also accounts for any error path that could be added.

Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240930-net-device_for_each_child_node_scoped-v2-2-35f09333c1d7@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 1d39d02a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment