diff options
Diffstat (limited to 'sys/dev/et/if_et.c')
-rw-r--r-- | sys/dev/et/if_et.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c index e6d73ab3c860..399c9fa77989 100644 --- a/sys/dev/et/if_et.c +++ b/sys/dev/et/if_et.c @@ -231,11 +231,6 @@ et_attach(device_t dev) callout_init_mtx(&sc->sc_tick, &sc->sc_mtx, 0); ifp = sc->ifp = if_alloc(IFT_ETHER); - if (ifp == NULL) { - device_printf(dev, "can not if_alloc()\n"); - error = ENOSPC; - goto fail; - } /* * Initialize tunables @@ -375,8 +370,6 @@ et_detach(device_t dev) callout_drain(&sc->sc_tick); } - if (sc->sc_miibus != NULL) - device_delete_child(dev, sc->sc_miibus); bus_generic_detach(dev); if (sc->sc_irq_handle != NULL) |