Skip to content

Commit

Permalink
[libata] ata_timing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Oct 26, 2005
1 parent ccd7bc2 commit 9119075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9119075

Please sign in to comment.