diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2024-06-28 10:16:29 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2024-06-28 10:16:29 +0000 |
| commit | aa3860851b9f6a6002d135b1cac7736e0995eedc (patch) | |
| tree | 2721f1a2a301278f11ee2d4772107aa07d6f131f /sys/dev/etherswitch/ar40xx | |
| parent | 0d8da0df415091d6ceceb74e4b6f42a15a3269e3 (diff) | |
Diffstat (limited to 'sys/dev/etherswitch/ar40xx')
| -rw-r--r-- | sys/dev/etherswitch/ar40xx/ar40xx_phy.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/etherswitch/ar40xx/ar40xx_phy.c b/sys/dev/etherswitch/ar40xx/ar40xx_phy.c index b9a308e3620d..f27e7503eb28 100644 --- a/sys/dev/etherswitch/ar40xx/ar40xx_phy.c +++ b/sys/dev/etherswitch/ar40xx/ar40xx_phy.c @@ -200,14 +200,6 @@ ar40xx_attach_phys(struct ar40xx_softc *sc) snprintf(name, IFNAMSIZ, "%sport", device_get_nameunit(sc->sc_dev)); for (phy = 0; phy < AR40XX_NUM_PHYS; phy++) { sc->sc_phys.ifp[phy] = if_alloc(IFT_ETHER); - if (sc->sc_phys.ifp[phy] == NULL) { - device_printf(sc->sc_dev, - "PHY %d: couldn't allocate ifnet structure\n", - phy); - err = ENOMEM; - break; - } - sc->sc_phys.ifp[phy]->if_softc = sc; sc->sc_phys.ifp[phy]->if_flags |= IFF_UP | IFF_BROADCAST | IFF_DRV_RUNNING | IFF_SIMPLEX; |
