From 4d187c0bc2d532a3003599729081d3d164bf0629 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 29 Aug 2020 18:20:13 +0000 Subject: Use ISSET() to check b_flags for B_READ. --- sys/scsi/cd.c | 4 ++-- sys/scsi/sd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3