summaryrefslogtreecommitdiffstats
path: root/sys/dev/ep/if_ep.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-07-01 05:31:23 +0000
committerimp <imp@FreeBSD.org>2005-07-01 05:31:23 +0000
commit12adb900dc9c87084c520df00e514c20714ffe08 (patch)
treeb21561ed14a86526b20ae64da866181529c9694f /sys/dev/ep/if_ep.c
parent602e2a21cfd7225018be3dcd7aef5edaa771be12 (diff)
downloadFreeBSD-src-12adb900dc9c87084c520df00e514c20714ffe08.zip
FreeBSD-src-12adb900dc9c87084c520df00e514c20714ffe08.tar.gz
Make a pass and cleanup the printfs from this driver.
Approved by: re (scottl) blanket ep
Diffstat (limited to 'sys/dev/ep/if_ep.c')
-rw-r--r--sys/dev/ep/if_ep.c6
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);
OpenPOWER on IntegriCloud