diff options
Diffstat (limited to 'sys/arch/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/mb89352.c | 6 | ||||
-rw-r--r-- | sys/arch/hp300/dev/mb89352var.h | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/hp300/dev/mb89352.c b/sys/arch/hp300/dev/mb89352.c index a2f2884696a..cdbf3627463 100644 --- a/sys/arch/hp300/dev/mb89352.c +++ b/sys/arch/hp300/dev/mb89352.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mb89352.c,v 1.27 2011/04/25 12:40:52 miod Exp $ */ +/* $OpenBSD: mb89352.c,v 1.28 2011/05/30 20:01:29 miod Exp $ */ /* $NetBSD: mb89352.c,v 1.5 2000/03/23 07:01:31 thorpej Exp $ */ /* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */ @@ -350,10 +350,8 @@ spc_acb_alloc(void *xsc) mtx_enter(&sc->sc_acb_mtx); acb = TAILQ_FIRST(&sc->free_list); - if (acb) { + if (acb) TAILQ_REMOVE(&sc->free_list, acb, chain); - acb->flags |= ACB_ALLOC; - } mtx_leave(&sc->sc_acb_mtx); return acb; diff --git a/sys/arch/hp300/dev/mb89352var.h b/sys/arch/hp300/dev/mb89352var.h index 29b5a22fcd7..14e9c9ec84a 100644 --- a/sys/arch/hp300/dev/mb89352var.h +++ b/sys/arch/hp300/dev/mb89352var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mb89352var.h,v 1.7 2011/04/02 17:44:43 krw Exp $ */ +/* $OpenBSD: mb89352var.h,v 1.8 2011/05/30 20:01:29 miod Exp $ */ /* $NetBSD: mb89352var.h,v 1.6 2003/08/02 12:48:09 tsutsui Exp $ */ /* NecBSD: mb89352var.h,v 1.4 1998/03/14 07:31:22 kmatsuda Exp */ @@ -83,7 +83,6 @@ struct spc_acb { TAILQ_ENTRY(spc_acb) chain; struct scsi_xfer *xs; /* SCSI xfer ctrl block from above */ int flags; -#define ACB_ALLOC 0x01 #define ACB_NEXUS 0x02 #define ACB_SENSE 0x04 #define ACB_ABORT 0x40 |