]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: use dsa_tree_for_each_user_port in dsa_slave_change_mtu
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 15 Apr 2022 15:46:23 +0000 (18:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2022 09:34:34 +0000 (10:34 +0100)
commitb2033a05a7197f5ddef617be8f510c9957a82553
tree54d777446a1a8ecd8fc0265ec6284595a0a619fd
parent726816a129cbb1d645ed319a6f181f152f0dbda8
net: dsa: use dsa_tree_for_each_user_port in dsa_slave_change_mtu

Use the more conventional iterator over user ports instead of explicitly
ignoring them, and use the more conventional name "other_dp" instead of
"dp_iter", for readability.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c