]> git.itanic.dy.fi Git - linux-stable/commit
mmc: core: Drop check for mmc_card_is_removable() in mmc_rescan()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 10 Oct 2019 13:54:37 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 10:04:23 +0000 (11:04 +0100)
commita0b50e5c4f396f5c2bef3ad528f3b3d4d186fed1
tree0c4761404be6fa54a988a0e0ff207c4881495a46
parent89c6e88294693dbbbd3d94f22940320f67f7792d
mmc: core: Drop check for mmc_card_is_removable() in mmc_rescan()

commit 99b4ddd8b76a6f60a8c2b3775849d65d21a418fc upstream.

Upfront in mmc_rescan() we use the host->rescan_entered flag, to allow
scanning only once for non-removable cards. Therefore, it's also not
possible that we can have a corresponding card bus attached (host->bus_ops
is NULL), when we are scanning non-removable cards.

For this reason, let' drop the check for mmc_card_is_removable() as it's
redundant.

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/core.c