Don't assume bio_cmd is a bit field.

Differential Revision: https://reviews.freebsd.org/D5594
This commit is contained in:
Warner Losh 2016-03-10 00:36:45 +00:00
parent c1a6d28a5b
commit beb09e42a3

View File

@ -364,7 +364,7 @@ fwmem_strategy(struct bio *bp)
}
iolen = MIN(bp->bio_bcount, MAXLEN);
if ((bp->bio_cmd & BIO_READ) == BIO_READ) {
if (bp->bio_cmd == BIO_READ) {
if (iolen == 4 && (bp->bio_offset & 3) == 0)
xfer = fwmem_read_quad(fwdev,
(void *)bp, fwmem_speed,