[libata] ata_timing fix

This commit is contained in:
Alan Cox 2005-10-26 12:17:46 -04:00 committed by Jeff Garzik
parent ccd7bc2f67
commit 91190758d4

View File

@ -1616,7 +1616,7 @@ static const struct ata_timing* ata_timing_find_mode(unsigned short speed)
const struct ata_timing *t;
for (t = ata_timing; t->mode != speed; t++)
if (t->mode != 0xFF)
if (t->mode == 0xFF)
return NULL;
return t;
}