diff options
author | 2022-08-19 20:48:18 +0300 | |
---|---|---|
committer | 2022-08-23 11:39:22 +0200 | |
commit | 5dc760d1208200daaf49a2ff56a0e7dfa2d80bb2 (patch) | |
tree | 9a2543f705e988ec3de185d539bc9ec1aee201ee /lib/memory-notifier-error-inject.c | |
parent | net: dsa: all DSA masters must be down when changing the tagging protocol (diff) | |
download | linux-rng-5dc760d1208200daaf49a2ff56a0e7dfa2d80bb2.tar.xz linux-rng-5dc760d1208200daaf49a2ff56a0e7dfa2d80bb2.zip |
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 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions