diff options
author | 2005-11-24 22:18:55 +0000 | |
---|---|---|
committer | 2005-11-24 22:18:55 +0000 | |
commit | 7d9a03fe08de2be5efdff32516cb99063c46c865 (patch) | |
tree | 7d092793f31a4f9c13f4947915b57c699084865a | |
parent | enable esm (diff) | |
download | wireguard-openbsd-7d9a03fe08de2be5efdff32516cb99063c46c865.tar.xz wireguard-openbsd-7d9a03fe08de2be5efdff32516cb99063c46c865.zip |
dont need spls in attach
-rw-r--r-- | sys/dev/ic/ami.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index d01d75c4560..eb7c036d0af 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.96 2005/11/23 21:36:18 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.97 2005/11/24 22:18:55 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -371,9 +371,6 @@ ami_attach(struct ami_softc *sc) (sc->sc_init)(sc); { paddr_t pa = idataseg[0].ds_addr; - int s; - - s = splbio(); ccb = ami_get_ccb(sc); cmd = &ccb->ccb_cmd; @@ -432,7 +429,6 @@ ami_attach(struct ami_softc *sc) cmd->acc_io.aio_param = 0; cmd->acc_io.aio_data = htole32(pa); if (ami_cmd(ccb, BUS_DMA_NOWAIT, 1) != 0) { - splx(s); printf(": cannot do inquiry\n"); goto destroy; } @@ -529,7 +525,6 @@ ami_attach(struct ami_softc *sc) sc->sc_link.openings = sc->sc_maxcmds; } - splx(s); } ami_freemem(idata, sc->dmat, &idatamap, idataseg, NBPG, 1, "init data"); |