Эх сурвалжийг харах

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>
Alan Cox 18 жил өмнө
parent
commit
6070068b87

+ 1 - 1
drivers/ata/libata-core.c

@@ -1727,7 +1727,7 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
 
 
 	/* sanity check */
 	/* sanity check */
 	rc = -EINVAL;
 	rc = -EINVAL;
-	reason = "device reports illegal type";
+	reason = "device reports invalid type";
 
 
 	if (class == ATA_DEV_ATA) {
 	if (class == ATA_DEV_ATA) {
 		if (!ata_id_is_ata(id) && !ata_id_is_cfa(id))
 		if (!ata_id_is_ata(id) && !ata_id_is_cfa(id))