summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2016-03-10 00:36:52 +0000
committerWarner Losh <imp@FreeBSD.org>2016-03-10 00:36:52 +0000
commit34d45182092cece0ed84b6d4cce9eabf704a3cea (patch)
tree1a78bcb19fbd004fa78858c6c0806bf88b0e202b
parentbeb09e42a3da42de424ca651cb0618db8b55d337 (diff)
Notes
-rw-r--r--sys/dev/amr/amr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c
index faa92d07e4365..0b52d9f8f0650 100644
--- a/sys/dev/amr/amr.c
+++ b/sys/dev/amr/amr.c
@@ -1319,7 +1319,7 @@ amr_bio_command(struct amr_softc *sc, struct amr_command **acp)
blkcount = (bio->bio_bcount + AMR_BLKSIZE - 1) / AMR_BLKSIZE;
ac->ac_mailbox.mb_command = cmd;
- if (bio->bio_cmd & (BIO_READ|BIO_WRITE)) {
+ if (bio->bio_cmd == BIO_READ || bio->bio_cmd == BIO_WRITE) {
ac->ac_mailbox.mb_blkcount = blkcount;
ac->ac_mailbox.mb_lba = bio->bio_pblkno;
if ((bio->bio_pblkno + blkcount) > sc->amr_drive[driveno].al_size) {