The variable last_port is not used anywhere, this patch removes it.
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>
                        id2 = 0x65;
        } else if (id2 == CHIP_ID_94) {
                dev->port_cnt--;
-               dev->last_port = dev->port_cnt;
                id2 = 0x94;
        }
        id16 &= ~0xff;
 
        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;