diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-08-19 20:48:18 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-08-23 12:39:22 +0300 |
commit | 5dc760d1208200daaf49a2ff56a0e7dfa2d80bb2 (patch) | |
tree | 9a2543f705e988ec3de185d539bc9ec1aee201ee /include/soc/mscc | |
parent | f41ec1fd1c20e2a4e60a4ab8490b3e63423c0a8a (diff) | |
download | linux-5dc760d1208200daaf49a2ff56a0e7dfa2d80bb2.tar.xz |
net: dsa: use dsa_tree_for_each_cpu_port in dsa_tree_{setup,teardown}_master
More logic will be added to dsa_tree_setup_master() and
dsa_tree_teardown_master() in upcoming changes.
Reduce the indentation by one level in these functions by introducing
and using a dedicated iterator for CPU ports of a tree.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/soc/mscc')
0 files changed, 0 insertions, 0 deletions