Page MenuHomeFreeBSD

D32906.diff
No OneTemporary

D32906.diff

diff --git a/sys/dev/etherswitch/felix/felix.c b/sys/dev/etherswitch/felix/felix.c
--- a/sys/dev/etherswitch/felix/felix.c
+++ b/sys/dev/etherswitch/felix/felix.c
@@ -96,7 +96,6 @@
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 @@
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)
{

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 2:04 PM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15826336
Default Alt Text
D32906.diff (823 B)

Event Timeline