Commit 453aa4cd authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Jakub Kicinski

net: dsa: microchip: ksz8795: remove unused last_port variable

The variable last_port is not used anywhere, this patch removes it.
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9693e08f
......@@ -1163,7 +1163,6 @@ static int ksz8795_switch_detect(struct ksz_device *dev)
id2 = 0x65;
} else if (id2 == CHIP_ID_94) {
dev->port_cnt--;
dev->last_port = dev->port_cnt;
id2 = 0x94;
}
id16 &= ~0xff;
......
......@@ -72,7 +72,6 @@ struct ksz_device {
int reg_mib_cnt;
int mib_cnt;
int mib_port_cnt;
int last_port; /* ports after that not used */
phy_interface_t compat_interface;
u32 regs_size;
bool phy_errata_9477;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment