aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-06-07 11:13:55 -0400
committerJeff Garzik <jeff@garzik.org>2007-06-09 22:40:28 -0400
commit6070068b875f604ff3f62e6e342bbd4c1f34a895 (patch)
tree682f27ec49eabc7061fdc6260a9ba951e6658cbe /drivers/ata/libata-core.c
parentd92e74d353345d19f762e9501a50b0a5f43f7ba8 (diff)
libata: Correct abuse of language
The controller is not reporting an unlawful type, it is reporting an invalid type. Illegal specifically means "prohibited by law" Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 85283c04d64..4b3c45e91c7 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1727,7 +1727,7 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
1727 1727
1728 /* sanity check */ 1728 /* sanity check */
1729 rc = -EINVAL; 1729 rc = -EINVAL;
1730 reason = "device reports illegal type"; 1730 reason = "device reports invalid type";
1731 1731
1732 if (class == ATA_DEV_ATA) { 1732 if (class == ATA_DEV_ATA) {
1733 if (!ata_id_is_ata(id) && !ata_id_is_cfa(id)) 1733 if (!ata_id_is_ata(id) && !ata_id_is_cfa(id))