summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/bcm_sf2.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@gmail.com>2019-08-19 16:00:48 -0400
committerDavid S. Miller <davem@davemloft.net>2019-08-20 12:33:49 -0700
commit955222ca5281ee7ded6b899605c055b147a15c73 (patch)
tree976d4c5e45c6d618865918a19e7ec8851fb89519 /drivers/net/dsa/bcm_sf2.c
parentd2187f8e445403b7aeb08e64c1528761154e9ab3 (diff)
downloadlwn-955222ca5281ee7ded6b899605c055b147a15c73.tar.gz
lwn-955222ca5281ee7ded6b899605c055b147a15c73.zip
net: dsa: use a single switch statement for port setup
It is currently difficult to read the different steps involved in the setup and teardown of ports in the DSA code. Keep it simple with a single switch statement for each port type: UNUSED, CPU, DSA, or USER. Also no need to call devlink_port_unregister from within dsa_port_setup as this step is inconditionally handled by dsa_port_teardown on error. Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.c')
0 files changed, 0 insertions, 0 deletions