svn commit: r296591 - head/sys/dev/firewire
Warner Losh
imp at FreeBSD.org
Thu Mar 10 00:36:47 UTC 2016
Author: imp
Date: Thu Mar 10 00:36:45 2016
New Revision: 296591
URL: https://svnweb.freebsd.org/changeset/base/296591
Log:
Don't assume bio_cmd is a bit field.
Differential Revision: https://reviews.freebsd.org/D5594
Modified:
head/sys/dev/firewire/fwmem.c
Modified: head/sys/dev/firewire/fwmem.c
==============================================================================
--- head/sys/dev/firewire/fwmem.c Thu Mar 10 00:36:38 2016 (r296590)
+++ head/sys/dev/firewire/fwmem.c Thu Mar 10 00:36:45 2016 (r296591)
@@ -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,
More information about the svn-src-all
mailing list