etherswitch/felix: remove unused function

Remove unused file-local static function felix_phyforport()
which was missed in 29cf6a79ac to avoid compile time warning.

Reviewed by:	Kornel Duleba (mindal semihalf.com)
Differential Revision: https://reviews.freebsd.org/D32906
This commit is contained in:
Bjoern A. Zeeb 2021-11-09 15:01:46 +00:00
parent 0bf8d5d5f4
commit 782cd815e1

View File

@ -96,7 +96,6 @@ static void felix_set_port_cfg(felix_softc_t, etherswitch_port_t *);
static bool felix_is_phyport(felix_softc_t, int);
static struct mii_data *felix_miiforport(felix_softc_t, unsigned int);
static int felix_phyforport(felix_softc_t, int);
static struct felix_pci_id felix_pci_ids[] = {
{PCI_VENDOR_FREESCALE, FELIX_DEV_ID, FELIX_DEV_NAME},
@ -999,18 +998,6 @@ felix_is_phyport(felix_softc_t sc, int port)
return (!sc->ports[port].fixed_port);
}
static int
felix_phyforport(felix_softc_t sc, int phy)
{
int port;
for (port = 0; port < sc->info.es_nports; port++) {
if (sc->ports[port].phyaddr == phy)
return (port);
}
return (-1);
}
static struct mii_data*
felix_miiforport(felix_softc_t sc, unsigned int port)
{