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"?