From 386d2d2de0f5df1c30a6c9d4a2db6e08ebc41b8c Mon Sep 17 00:00:00 2001 From: Peter Dufault Date: Wed, 3 May 1995 23:53:32 +0000 Subject: [PATCH] Change defintion of unit to minor(dev). Sorry for not having this in my local build. Thanks to gpalmer. --- sys/scsi/worm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/scsi/worm.c b/sys/scsi/worm.c index 151e0c7f6bd3..b62fc02555b6 100644 --- a/sys/scsi/worm.c +++ b/sys/scsi/worm.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: worm.c,v 1.4 1995/04/23 22:07:56 gibbs Exp $ + * $Id: worm.c,v 1.5 1995/05/03 23:38:20 gpalmer Exp $ */ /* XXX This is PRELIMINARY. @@ -59,8 +59,6 @@ #include #include -#define STUNIT(DEV) ((minor(DEV)&0xF0) >> 4) /* 4 bit unit. */ - struct scsi_data { struct buf *buf_queue; /* the queue of pending IO operations */ @@ -258,7 +256,7 @@ worm_strategy(struct buf *bp, struct scsi_link *sc_link) u_int32 opri; struct scsi_data *worm; - unit = STUNIT((bp->b_dev)); + unit = minor((bp->b_dev)); worm = sc_link->sd; /* XXX: Can't we move this check up to "scsi_strategy"?