Don't assume bio_cmd is a bit field.
Differential Revision: https://reviews.freebsd.org/D5594
This commit is contained in:
parent
c1a6d28a5b
commit
beb09e42a3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user