Commit 91190758 authored by Alan Cox's avatar Alan Cox Committed by Jeff Garzik

[libata] ata_timing fix

parent ccd7bc2f
...@@ -1616,7 +1616,7 @@ static const struct ata_timing* ata_timing_find_mode(unsigned short speed) ...@@ -1616,7 +1616,7 @@ static const struct ata_timing* ata_timing_find_mode(unsigned short speed)
const struct ata_timing *t; const struct ata_timing *t;
for (t = ata_timing; t->mode != speed; t++) for (t = ata_timing; t->mode != speed; t++)
if (t->mode != 0xFF) if (t->mode == 0xFF)
return NULL; return NULL;
return t; return t;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment