Date: Tue, 9 Nov 2021 15:14:51 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 782cd815e1ab - main - etherswitch/felix: remove unused function Message-ID: <202111091514.1A9FEpH6073553@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=782cd815e1ab594d87e01f0a3d47a75b1b735aff commit 782cd815e1ab594d87e01f0a3d47a75b1b735aff Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2021-11-09 15:01:46 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2021-11-09 15:08:53 +0000 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 --- sys/dev/etherswitch/felix/felix.c | 13 ------------- 1 file changed, 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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111091514.1A9FEpH6073553>