Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6070068b authored by Alan Cox's avatar Alan Cox Committed by Jeff Garzik
Browse files

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: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent d92e74d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1727,7 +1727,7 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,

	/* sanity check */
	rc = -EINVAL;
	reason = "device reports illegal type";
	reason = "device reports invalid type";

	if (class == ATA_DEV_ATA) {
		if (!ata_id_is_ata(id) && !ata_id_is_cfa(id))