Commit 79765386 authored by Zhang Zekun's avatar Zhang Zekun Committed by Paolo Abeni
Browse files

net: ethernet: ibm: Simpify code with for_each_child_of_node()



for_each_child_of_node can help to iterate through the device_node,
and we don't need to use while loop. No functional change with this
conversion.

Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240816015837.109627-1-zhangzekun11@huawei.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 6b2efdc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment