From c0afed1c962ca1f5d2caea522e991d5956ee02a2 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 30 May 2011 20:01:30 +0000 Subject: Remove unused ACB_ALLOC define. --- sys/arch/luna88k/dev/mb89352.c | 6 ++---- sys/arch/luna88k/dev/mb89352var.h | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/arch/luna88k/dev') diff --git a/sys/arch/luna88k/dev/mb89352.c b/sys/arch/luna88k/dev/mb89352.c index a4f0dac9ad5..f05e1195400 100644 --- a/sys/arch/luna88k/dev/mb89352.c +++ b/sys/arch/luna88k/dev/mb89352.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mb89352.c,v 1.16 2011/04/03 12:42:36 krw Exp $ */ +/* $OpenBSD: mb89352.c,v 1.17 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 */ @@ -374,10 +374,8 @@ spc_acb_alloc(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/luna88k/dev/mb89352var.h b/sys/arch/luna88k/dev/mb89352var.h index e2f78ed4c02..ba48c2205cf 100644 --- a/sys/arch/luna88k/dev/mb89352var.h +++ b/sys/arch/luna88k/dev/mb89352var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mb89352var.h,v 1.3 2011/04/03 12:42:36 krw Exp $ */ +/* $OpenBSD: mb89352var.h,v 1.4 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 -- cgit v1.2.3