summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authordufault <dufault@FreeBSD.org>1995-05-03 23:53:32 +0000
committerdufault <dufault@FreeBSD.org>1995-05-03 23:53:32 +0000
commit588beae4b23eb70d73bc6b3e8876692bb67a639c (patch)
treeebc7f938a3e0852f05897910a2e30c0730f9df48 /sys/scsi
parent494c18afd27167331d7a9f082aa867d7f10ddcb3 (diff)
downloadFreeBSD-src-588beae4b23eb70d73bc6b3e8876692bb67a639c.zip
FreeBSD-src-588beae4b23eb70d73bc6b3e8876692bb67a639c.tar.gz
Change defintion of unit to minor(dev). Sorry for not
having this in my local build. Thanks to gpalmer.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/worm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/scsi/worm.c b/sys/scsi/worm.c
index 151e0c7..b62fc02 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 <scsi/scsiconf.h>
#include <scsi/scsi_disk.h>
-#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"?
OpenPOWER on IntegriCloud