aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-02-12 08:47:04 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-02-12 14:24:41 -0500
commit2e02671daa2cd69d93c828c40579bbe953f17210 (patch)
treebcafe5d5b36be475de57081600fae13408cd0c4e /drivers/scsi/libata-scsi.c
parent0e949ff304a7ca07db38c17fbbf3ead1085d7bbf (diff)
[PATCH] libata: use ata_dev_id_c_string()
Use ata_dev_id_c_string() Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r--drivers/scsi/libata-scsi.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 26f07a2617f9..ebd7cf42550b 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -1806,15 +1806,12 @@ static int ata_dev_supports_fua(u16 *id)
1806 if (!ata_id_has_fua(id)) 1806 if (!ata_id_has_fua(id))
1807 return 0; 1807 return 0;
1808 1808
1809 model[40] = '\0'; 1809 ata_dev_id_c_string(id, model, ATA_ID_PROD_OFS, sizeof(model));
1810 fw[8] = '\0'; 1810 ata_dev_id_c_string(id, fw, ATA_ID_FW_REV_OFS, sizeof(fw));
1811 1811
1812 ata_dev_id_string(id, model, ATA_ID_PROD_OFS, sizeof(model) - 1); 1812 if (strcmp(model, "Maxtor"))
1813 ata_dev_id_string(id, fw, ATA_ID_FW_REV_OFS, sizeof(fw) - 1);
1814
1815 if (strncmp(model, "Maxtor", 6))
1816 return 1; 1813 return 1;
1817 if (strncmp(fw, "BANC1G10", 8)) 1814 if (strcmp(fw, "BANC1G10"))
1818 return 1; 1815 return 1;
1819 1816
1820 return 0; /* blacklisted */ 1817 return 0; /* blacklisted */