Message ID | 20210115034506.646-1-zbestahu@gmail.com |
---|---|
State | New |
Headers | show |
Series | mmc: core: remove redundant card null check to mmc_can_sleep() | expand |
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index ff3063c..49e5487 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1899,7 +1899,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, 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)