diff options
Diffstat (limited to 'sys/dev/ep/if_ep.c')
-rw-r--r-- | sys/dev/ep/if_ep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 39141b4..cee3aa6 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -288,7 +288,7 @@ ep_attach(struct ep_softc *sc) ep_setup_station(sc, sc->eaddr); ifp = sc->ifp = if_alloc(IFT_ETHER); if (ifp == NULL) { - device_printf(sc->dev, "can not if_alloc()\n"); + device_printf(sc->dev, "if_alloc() failed\n"); EP_LOCK_DESTORY(sc); return (ENOSPC); } @@ -350,10 +350,8 @@ ep_detach(device_t dev) EP_ASSERT_UNLOCKED(sc); ifp = sc->ifp; - if (sc->gone) { - device_printf(dev, "already unloaded\n"); + if (sc->gone) return (0); - } if (bus_child_present(dev)) epstop(sc); |