diff options
-rw-r--r-- | drivers/ata/libahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 666850d31df2..68dc6785472f 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c | |||
@@ -1326,7 +1326,7 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class, | |||
1326 | /* issue the first D2H Register FIS */ | 1326 | /* issue the first D2H Register FIS */ |
1327 | msecs = 0; | 1327 | msecs = 0; |
1328 | now = jiffies; | 1328 | now = jiffies; |
1329 | if (time_after(now, deadline)) | 1329 | if (time_after(deadline, now)) |
1330 | msecs = jiffies_to_msecs(deadline - now); | 1330 | msecs = jiffies_to_msecs(deadline - now); |
1331 | 1331 | ||
1332 | tf.ctl |= ATA_SRST; | 1332 | tf.ctl |= ATA_SRST; |