aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nand/nand_cdev.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2015-12-18 05:55:24 +0000
committerWarner Losh <imp@FreeBSD.org>2015-12-18 05:55:24 +0000
commit7fef161f23086458b0f7e006f853e3298f9ebf0a (patch)
tree9ebfa92237d6ec4aa129cf2afeda5323b78ed66a /sys/dev/nand/nand_cdev.c
parentd1e1c4de1589171139539de6f543b222617bbc61 (diff)
downloadsrc-7fef161f23086458b0f7e006f853e3298f9ebf0a.tar.gz
src-7fef161f23086458b0f7e006f853e3298f9ebf0a.zip
No need to test command values this way. There can be only one, even
though the encoding is bit-wise today...
Notes
Notes: svn path=/head/; revision=292428
Diffstat (limited to 'sys/dev/nand/nand_cdev.c')
-rw-r--r--sys/dev/nand/nand_cdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/nand/nand_cdev.c b/sys/dev/nand/nand_cdev.c
index b01194601ada..054095538356 100644
--- a/sys/dev/nand/nand_cdev.c
+++ b/sys/dev/nand/nand_cdev.c
@@ -236,10 +236,10 @@ nand_strategy(struct bio *bp)
chip = dev->si_drv1;
nand_debug(NDBG_CDEV, "Strategy %s on chip %d [%p]\n",
- (bp->bio_cmd & BIO_READ) == BIO_READ ? "READ" : "WRITE",
+ bp->bio_cmd == BIO_READ ? "READ" : "WRITE",
chip->num, chip);
- if ((bp->bio_cmd & BIO_READ) == BIO_READ) {
+ if (bp->bio_cmd == BIO_READ) {
err = nand_read(chip,
bp->bio_offset & 0xffffffff,
bp->bio_data, bp->bio_bcount);