Skip to content

Commit

Permalink
libata: Correct abuse of language
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Jun 10, 2007
1 parent d92e74d commit 6070068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6070068

Please sign in to comment.