aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorye xingchen <[email protected]>2022-09-20 06:46:48 +0000
committerUlf Hansson <[email protected]>2022-09-20 14:18:15 +0200
commitaa8c8cd047467d4573ce042a76ba74191ddda7b4 (patch)
treed86674c85916b3f66848ca193cbf79f366a4412a
parent3eb123142f6d66ff7542cbae5833bbc0ec88adb0 (diff)
mmc: rtsx_usb_sdmmc: Remove the unneeded result variable
Return the value rtsx_usb_send_cmd() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <[email protected]> Signed-off-by: ye xingchen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
-rw-r--r--drivers/mmc/host/rtsx_usb_sdmmc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c
index 5fe4528e296e..5798aee06653 100644
--- a/drivers/mmc/host/rtsx_usb_sdmmc.c
+++ b/drivers/mmc/host/rtsx_usb_sdmmc.c
@@ -1042,7 +1042,6 @@ static int sd_set_timing(struct rtsx_usb_sdmmc *host,
unsigned char timing, bool *ddr_mode)
{
struct rtsx_ucr *ucr = host->ucr;
- int err;
*ddr_mode = false;
@@ -1097,9 +1096,7 @@ static int sd_set_timing(struct rtsx_usb_sdmmc *host,
break;
}
- err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
-
- return err;
+ return rtsx_usb_send_cmd(ucr, MODE_C, 100);
}
static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)