Remove the never set BIP_DISK_NOCHECK flag.
Signed-off-by: Christoph Hellwig <hch@lst.de>
if (dif) { /* DIX/DIF Type 1, 2, 3 */
scmd->prot_flags |= SCSI_PROT_TRANSFER_PI;
-
- if (bio_integrity_flagged(bio, BIP_DISK_NOCHECK))
- protect = 3 << 5; /* Disable target PI checking */
- else
- protect = 1 << 5; /* Enable target PI checking */
+ protect = 1 << 5; /* Enable target PI checking */
}
scsi_set_prot_op(scmd, prot_op);
BIP_BLOCK_INTEGRITY = 1 << 0, /* block layer owns integrity data */
BIP_MAPPED_INTEGRITY = 1 << 1, /* ref tag has been remapped */
BIP_CTRL_NOCHECK = 1 << 2, /* disable HBA integrity checking */
- BIP_DISK_NOCHECK = 1 << 3, /* disable disk integrity checking */
BIP_IP_CHECKSUM = 1 << 4, /* IP checksum */
};