mmc: core: remove redundant card null check to mmc_can_sleep()
authorYue Hu <huyue2@yulong.com>
Fri, 15 Jan 2021 03:45:06 +0000 (11:45 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:54:46 +0000 (11:54 +0100)
commit783667ccb5b57cc81af2646b46f56ada05f0f0ae
treea0ff5f7182795f7368c712083ac0d4a119166835
parent1c148853e8eb433ec88cf0b9482376ec7814b599
mmc: core: remove redundant card null check to mmc_can_sleep()

Note that only _mmc_suspend() will call mmc_can_sleep(). And card is
checked before in mmc_can_poweroff_notify().

Signed-off-by: Yue Hu <huyue2@yulong.com>
Link: https://lore.kernel.org/r/20210115034506.646-1-zbestahu@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c