mmc: mmci: Break out error check in busy detect
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Jun 2023 20:42:22 +0000 (22:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jun 2023 11:14:26 +0000 (13:14 +0200)
commite1a2485cc367cd0efe6821e2d8deef863c4ba250
tree00cce94c7084f0ef13dd0e586094b53d7486ca2f
parent8a6a9e79720a51f40835a8a7dc94cf02a58f0600
mmc: mmci: Break out error check in busy detect

The busy detect callback for Ux500 checks for an error
in the status in the first if() clause. The only practical
reason is that if an error occurs, the if()-clause is not
executed, and the code falls through to the last
if()-clause if (host->busy_status) which will clear and
disable the irq. Make this explicit instead: it is easier
to read.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230405-pl180-busydetect-fix-v7-4-69a7164f2a61@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c