diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-08-29 18:20:13 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-08-29 18:20:13 +0000 |
commit | 4d187c0bc2d532a3003599729081d3d164bf0629 (patch) | |
tree | 45609fb8e1ad4115d807b7a35396046cd60af109 /sys | |
parent | 5cc4ba5534838a91cafc6d3f3f5864d4ec72943f (diff) |
Use ISSET() to check b_flags for B_READ.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/cd.c | 4 | ||||
-rw-r--r-- | sys/scsi/sd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 30178cec612..35d5e7820af 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd.c,v 1.258 2020/08/29 16:07:19 krw Exp $ */ +/* $OpenBSD: cd.c,v 1.259 2020/08/29 18:20:12 krw Exp $ */ /* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */ /* @@ -555,7 +555,7 @@ cdstart(struct scsi_xfer *xs) scsi_xs_put(xs); return; } - read = (bp->b_flags & B_READ); + read = ISSET(bp->b_flags, B_READ); SET(xs->flags, (read ? SCSI_DATA_IN : SCSI_DATA_OUT)); xs->timeout = 30000; diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index c71c833738a..13ff182503f 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.324 2020/08/29 17:10:06 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.325 2020/08/29 18:20:12 krw Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -676,7 +676,7 @@ sdstart(struct scsi_xfer *xs) scsi_xs_put(xs); return; } - read = bp->b_flags & B_READ; + read = ISSET(bp->b_flags, B_READ); SET(xs->flags, (read ? SCSI_DATA_IN : SCSI_DATA_OUT)); xs->timeout = 60000; |