diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2005-10-26 12:17:46 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-26 12:17:46 -0400 |
commit | 91190758d410a5d33c6051ba9ca95baa430256bb (patch) | |
tree | 2c9610004670f233a082549700376ded2a219261 | |
parent | ccd7bc2f67fdfa9c47ceae64f1117d1fb6cb8737 (diff) |
[libata] ata_timing fix
-rw-r--r-- | drivers/scsi/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index dcd3b5553cc8..f53d7b8ac33f 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -1616,7 +1616,7 @@ static const struct ata_timing* ata_timing_find_mode(unsigned short speed) | |||
1616 | const struct ata_timing *t; | 1616 | const struct ata_timing *t; |
1617 | 1617 | ||
1618 | for (t = ata_timing; t->mode != speed; t++) | 1618 | for (t = ata_timing; t->mode != speed; t++) |
1619 | if (t->mode != 0xFF) | 1619 | if (t->mode == 0xFF) |
1620 | return NULL; | 1620 | return NULL; |
1621 | return t; | 1621 | return t; |
1622 | } | 1622 | } |