summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd_dif.c
diff options
context:
space:
mode:
authorMartin K. Petersen2008-09-20 00:47:20 +0200
committerJames Bottomley2008-10-13 15:28:58 +0200
commitbe922f478f430f8fab4db952ffc20c86f23de397 (patch)
treece172a3979decae14130819313a26fd039537a4d /drivers/scsi/sd_dif.c
parent[SCSI] sd: Issue correct protection operation (diff)
downloadkernel-qcow2-linux-be922f478f430f8fab4db952ffc20c86f23de397.tar.gz
kernel-qcow2-linux-be922f478f430f8fab4db952ffc20c86f23de397.tar.xz
kernel-qcow2-linux-be922f478f430f8fab4db952ffc20c86f23de397.zip
[SCSI] sd: Always print actual protection_type
Now that we no longer use protection_type as trigger for preparing protected CDBs we can remove the places that set it to zero. This allows userland to see which protection type the device is formatted with regardless of whether the HBA supports DIF or not. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd_dif.c')
-rw-r--r--drivers/scsi/sd_dif.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c
index 4d17f3d35aac..943fde7e7ffb 100644
--- a/drivers/scsi/sd_dif.c
+++ b/drivers/scsi/sd_dif.c
@@ -321,7 +321,6 @@ void sd_dif_config_host(struct scsi_disk *sdkp)
if (scsi_host_dif_capable(sdp->host, type) == 0) {
sd_printk(KERN_INFO, sdkp, "Type %d protection " \
"unsupported by HBA. Disabling DIF.\n", type);
- sdkp->protection_type = 0;
return;
}