mirror of https://gitee.com/openkylin/linux.git
[libata] ata_timing fix
This commit is contained in:
parent
ccd7bc2f67
commit
91190758d4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue