mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
mmc: rtsx_pci: Drop if block with always false condition
rtsx_pci_sdmmc_drv_remove() is only called for a device after rtsx_pci_sdmmc_drv_probe() returned 0. In that case platform_set_drvdata() was called with a non-NULL value and so platform_get_drvdata() won't return NULL. Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230727070051.17778-16-frank.li@vivo.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
c61394aa92
commit
aeaa4cb309
@ -1529,9 +1529,6 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev)
|
||||
struct rtsx_pcr *pcr;
|
||||
struct mmc_host *mmc;
|
||||
|
||||
if (!host)
|
||||
return 0;
|
||||
|
||||
pcr = host->pcr;
|
||||
pcr->slots[RTSX_SD_CARD].p_dev = NULL;
|
||||
pcr->slots[RTSX_SD_CARD].card_event = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user