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>
This commit is contained in:
Yue Hu 2021-01-15 11:45:06 +08:00 committed by Ulf Hansson
parent 1c148853e8
commit 783667ccb5
1 changed files with 1 additions and 1 deletions

View File

@ -1895,7 +1895,7 @@ err:
static int mmc_can_sleep(struct mmc_card *card)
{
return (card && card->ext_csd.rev >= 3);
return card->ext_csd.rev >= 3;
}
static int mmc_sleep(struct mmc_host *host)