mmc: core: Re-structure some code in __mmc_poll_for_busy()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 4 May 2021 16:12:14 +0000 (18:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Jun 2021 11:57:35 +0000 (13:57 +0200)
commit1e0b069bdc583925d6207e091e55ad4d0f30eb4c
tree2782acaef8cf0c38ac713068bc5e4a4d57f52dd0
parentc7bedef053cf7fd26efca90551a95c1776dd9e2f
mmc: core: Re-structure some code in __mmc_poll_for_busy()

To make the code a bit more understandable, let's move the check about
whether polling is allowed or not, out to the caller instead. In this way,
we can also drop the send_status in-parameter, so let's do that.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20210504161222.101536-4-ulf.hansson@linaro.org
drivers/mmc/core/mmc_ops.c