projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb1231
)
mmc: rtsx_usb_sdmmc: Remove the unneeded result variable
author
ye xingchen
<ye.xingchen@zte.com.cn>
Tue, 20 Sep 2022 06:46:48 +0000
(06:46 +0000)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 20 Sep 2022 12:18:15 +0000
(14:18 +0200)
Return the value rtsx_usb_send_cmd() directly instead of storing it in
another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link:
https://lore.kernel.org/r/20220920064648.215375-1-ye.xingchen@zte.com.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/rtsx_usb_sdmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/rtsx_usb_sdmmc.c
b/drivers/mmc/host/rtsx_usb_sdmmc.c
index 5fe4528e296e68719a196786dedc91cf25559615..5798aee066531c31077ed80cc96bad300b026164 100644
(file)
--- 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)