]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 24 May 2021 13:12:28 +0000 (15:12 +0200)
commit8a85c31fe61fdc9ab4994c4b430966c2b271dc1c
treec2abf1f974adf20ae5c9468d6d1a01b91d53fff6
parent8c0a2922fa465999b172df646e972c179bfde11a
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