[libata] ata_timing fix
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Wed, 26 Oct 2005 16:17:46 +0000 (12:17 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 26 Oct 2005 16:17:46 +0000 (12:17 -0400)
drivers/scsi/libata-core.c

index dcd3b5553cc8e39876dc23d6840535e28bcd8fbd..f53d7b8ac33f41fcd488cdfb34ec88b3b0658339 100644 (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; 
 }