Skip to contentSkip to conversation

mmc: rtsx: fix sdmmc_switch_voltage return bug

PATCH New [email protected] 1 participant 1 message Dec 2, 2020 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 3/4 mmc: rtsx: fix sdmmc_switch_voltage return bug

From: Ricky Wu <[email protected]>

fixed bug:
return err always return rtsx_pci_write_register() return code not for callback function _switch_voltage()

---
 drivers/mmc/host/rtsx_pci_sdmmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/rtsx_pci_sdmmc.c +1 -1
index eb395e144207..93be9fa97098 100644
@@ -1249,7 +1249,7 @@ static int sdmmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
 
 out:
 	/* Stop toggle SD clock in idle */
-	err = rtsx_pci_write_register(pcr, SD_BUS_STAT,
+	rtsx_pci_write_register(pcr, SD_BUS_STAT,
 			SD_CLK_TOGGLE_EN | SD_CLK_FORCE_STOP, 0);
 
 	mutex_unlock(&pcr->pcr_mutex);
Signature · 1 line
2.17.1