net: dsa: remove bool devlink_port_setup
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 29 Sep 2022 07:29:02 +0000 (09:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Oct 2022 01:17:17 +0000 (18:17 -0700)
commit61e4a51621587c939672d6a9354f6d0aa3d4e131
tree03eeb395f256a2b127980740d47c74ef6448ff95
parentc698a5fbf7fd9f5bb909d09626319b59d55db36b
net: dsa: remove bool devlink_port_setup

Since dsa_port_devlink_setup() and dsa_port_devlink_teardown() are
already called from code paths which only execute once per port (due to
the existing bool dp->setup), keeping another dp->devlink_port_setup is
redundant, because we can already manage to balance the calls properly
(and not call teardown when setup was never called, or call setup twice,
or things like that).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dsa.h
net/dsa/dsa2.c