diff options
| author | Scott Long <scottl@FreeBSD.org> | 2005-11-06 15:13:42 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2005-11-06 15:13:42 +0000 |
| commit | fceb189d650f56827b35d8b9d11220beccf221ba (patch) | |
| tree | 8a8a9dce5e31a6cec4b992169962bd299d7dfacf /sys/dev/amr/amr_cam.c | |
| parent | 32948b81c442618246906e6cbc40da567fda00a6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/amr/amr_cam.c')
| -rw-r--r-- | sys/dev/amr/amr_cam.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/amr/amr_cam.c b/sys/dev/amr/amr_cam.c index 9becb73fea80..51d5c6fe7735 100644 --- a/sys/dev/amr/amr_cam.c +++ b/sys/dev/amr/amr_cam.c @@ -94,33 +94,24 @@ static void amr_cam_complete_extcdb(struct amr_command *ac); static __inline void amr_enqueue_ccb(struct amr_softc *sc, union ccb *ccb) { - int s; - s = splbio(); TAILQ_INSERT_TAIL(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); - splx(s); } static __inline void amr_requeue_ccb(struct amr_softc *sc, union ccb *ccb) { - int s; - s = splbio(); TAILQ_INSERT_HEAD(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); - splx(s); } static __inline union ccb * amr_dequeue_ccb(struct amr_softc *sc) { union ccb *ccb; - int s; - s = splbio(); if ((ccb = (union ccb *)TAILQ_FIRST(&sc->amr_cam_ccbq)) != NULL) TAILQ_REMOVE(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); - splx(s); return(ccb); } |
