mmc: fix wrong timeout check in mmc_send_status()
authorJongman Heo <jongman.heo@gmail.com>
Sun, 3 Jun 2012 21:32:13 +0000 (21:32 +0000)
committernotaz <notasas@gmail.com>
Thu, 29 Oct 2015 22:41:43 +0000 (00:41 +0200)
commit8054c033b4cbef381c60e2252a15089df420bc74
treee17433d1b2d90bed5b33c46544524592580682e6
parent2c6d7dc57ad470dce326575e11dacfdb101f46a6
mmc: fix wrong timeout check in mmc_send_status()

(!timeout) condition check in mmc_send_status() can never be met,
because do-while loop ends up with negative timeout value, -1.

Fix the check to handle TIMEOUT case correctly.

Signed-off-by: Jongman Heo <jongman.heo@gmail.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mmc.c