net: dsa: microchip: ksz8795: remove superfluous port_cnt assignment
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 1 Dec 2020 20:44:57 +0000 (21:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 01:16:28 +0000 (17:16 -0800)
commit68a1b676db52435725deec33389cb362bb64c6e6
tree93cdb0bfa75137f85b247ee1a3793307ed91465b
parent453aa4cd7edfa9117a57a20d96a875d815251156
net: dsa: microchip: ksz8795: remove superfluous port_cnt assignment

The port_cnt assignment will be done again in the init function.
This patch removes the previous assignment in the detect function.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz8795.c