Skip to content
Commit 3ba1d53c authored by Pragnesh Patel's avatar Pragnesh Patel Committed by Peng Fan
Browse files

mmc: mmc_spi: correct the while condition



When variable i will become 0, while(i--) loop breaks but variable i will
again decrement to -1 because of i-- and that's why below condition
"if (!i && (r != resp_match_value)" will never execute, So doing "i--"
inside of while() loop solves this problem.

Signed-off-by: default avatarPragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: default avatarBin Meng <bin.meng@windriver.com>
Tested-by: default avatarBin Meng <bin.meng@windriver.com>
parent 497c7598
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment