summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-07-19 22:26:44 +0000
committerimp <imp@FreeBSD.org>2005-07-19 22:26:44 +0000
commitbb48aae2f21d98f6ccaab379ed2ffc6e480159db (patch)
treed6900e3a023f5af32f8051c4b35cf69acdfdfbbc
parent66b2171b384c924c4f97fca02053a6abce44ce9b (diff)
downloadFreeBSD-src-bb48aae2f21d98f6ccaab379ed2ffc6e480159db.zip
FreeBSD-src-bb48aae2f21d98f6ccaab379ed2ffc6e480159db.tar.gz
Spell destroy in a more traditional way
-rw-r--r--sys/dev/ep/if_ep.c6
-rw-r--r--sys/dev/ep/if_epvar.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index cee3aa6..de419ff 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -281,7 +281,7 @@ ep_attach(struct ep_softc *sc)
error = ep_get_macaddr(sc, sc->eaddr);
if (error) {
device_printf(sc->dev, "Unable to get MAC address!\n");
- EP_LOCK_DESTORY(sc);
+ EP_LOCK_DESTROY(sc);
return (ENXIO);
}
}
@@ -289,7 +289,7 @@ ep_attach(struct ep_softc *sc)
ifp = sc->ifp = if_alloc(IFT_ETHER);
if (ifp == NULL) {
device_printf(sc->dev, "if_alloc() failed\n");
- EP_LOCK_DESTORY(sc);
+ EP_LOCK_DESTROY(sc);
return (ENOSPC);
}
@@ -361,7 +361,7 @@ ep_detach(device_t dev)
sc->gone = 1;
ep_free(dev);
- EP_LOCK_DESTORY(sc);
+ EP_LOCK_DESTROY(sc);
return (0);
}
diff --git a/sys/dev/ep/if_epvar.h b/sys/dev/ep/if_epvar.h
index 9480bdf..704fe02 100644
--- a/sys/dev/ep/if_epvar.h
+++ b/sys/dev/ep/if_epvar.h
@@ -103,6 +103,6 @@ int ep_get_e(struct ep_softc *, uint16_t, uint16_t *);
#define EP_LOCK_INIT(_sc) \
mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \
MTX_NETWORK_LOCK, MTX_DEF)
-#define EP_LOCK_DESTORY(_sc) mtx_destroy(&_sc->sc_mtx);
+#define EP_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx);
#define EP_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED);
#define EP_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);
OpenPOWER on IntegriCloud