]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: remove superfluous num_ports assignment
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 1 Dec 2020 20:45:02 +0000 (21:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 01:16:29 +0000 (17:16 -0800)
commit3f516824ab581b166473493bbf0737791d205874
tree2b0eace81bfbc7d8f0dd5aeb3c954101f3bbd6ec
parent5b6edcb607e5850e2f43905d778a60bbfb8c877e
net: dsa: microchip: remove superfluous num_ports assignment

The variable num_ports is already assigned in the init function. The
drivers individual init function already handles the different purpose
of port_cnt vs port_cnt + 1. This patch removes the extra assignment of
the variable.

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
drivers/net/dsa/microchip/ksz9477.c