]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce212882482cc40f2419801e29335d9ba5efade2
tree93cdb0bfa75137f85b247ee1a3793307ed91465b
parent5a2e12b1a4da0e58df0769d60ea174d7b17586b0
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