mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Remove bare & 0x3; it encodes the values of BIO_READ and
BIO_WRITE. It's also unnecessary since the only cases in this switch are those two.
This commit is contained in:
parent
486607d0b6
commit
225e4b4296
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296890
@ -2141,7 +2141,7 @@ mfi_build_syspdio(struct mfi_softc *sc, struct bio *bio)
|
||||
pass = &cm->cm_frame->pass;
|
||||
bzero(pass->cdb, 16);
|
||||
pass->header.cmd = MFI_CMD_PD_SCSI_IO;
|
||||
switch (bio->bio_cmd & 0x03) {
|
||||
switch (bio->bio_cmd) {
|
||||
case BIO_READ:
|
||||
flags = MFI_CMD_DATAIN | MFI_CMD_BIO;
|
||||
readop = 1;
|
||||
@ -2200,7 +2200,7 @@ mfi_build_ldio(struct mfi_softc *sc, struct bio *bio)
|
||||
bzero(cm->cm_frame, sizeof(union mfi_frame));
|
||||
cm->cm_frame->header.context = context;
|
||||
io = &cm->cm_frame->io;
|
||||
switch (bio->bio_cmd & 0x03) {
|
||||
switch (bio->bio_cmd) {
|
||||
case BIO_READ:
|
||||
io->header.cmd = MFI_CMD_LD_READ;
|
||||
flags = MFI_CMD_DATAIN | MFI_CMD_BIO;
|
||||
|
Loading…
Reference in New Issue
Block a user