diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-11-09 15:01:46 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-11-09 15:08:53 +0000 |
| commit | 782cd815e1ab594d87e01f0a3d47a75b1b735aff (patch) | |
| tree | 9361adaf880f60de80d25ed8d1f4d4f21e9a6d40 /sys/dev/etherswitch/felix | |
| parent | 0bf8d5d5f43426321940e351939b0b712f28b08f (diff) | |
etherswitch/felix: remove unused function
Remove unused file-local static function felix_phyforport()
which was missed in 29cf6a79acb7 to avoid compile time warning.
Reviewed by: Kornel Duleba (mindal semihalf.com)
Differential Revision: https://reviews.freebsd.org/D32906
Diffstat (limited to 'sys/dev/etherswitch/felix')
| -rw-r--r-- | sys/dev/etherswitch/felix/felix.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/etherswitch/felix/felix.c b/sys/dev/etherswitch/felix/felix.c index a80f4f8d15ae..3ccc4b766877 100644 --- a/sys/dev/etherswitch/felix/felix.c +++ b/sys/dev/etherswitch/felix/felix.c @@ -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) { |
