From: Alan Cox Date: Wed, 26 Oct 2005 16:17:46 +0000 (-0400) Subject: [libata] ata_timing fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=91190758d410a5d33c6051ba9ca95baa430256bb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [libata] ata_timing fix --- diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index dcd3b5553cc8..f53d7b8ac33f 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -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; }