projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
066ecde
)
mmc: sdhci_am654: Remove the unneeded result variable
author
ye xingchen
<ye.xingchen@zte.com.cn>
Tue, 30 Aug 2022 08:33:49 +0000
(08:33 +0000)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Wed, 14 Sep 2022 09:53:48 +0000
(11:53 +0200)
Return the value cqhci_init() 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>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link:
https://lore.kernel.org/r/20220830083349.276709-1-ye.xingchen@zte.com.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_am654.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci_am654.c
b/drivers/mmc/host/sdhci_am654.c
index e7ced1496a0731afba7edeaa7f4508aba50c4877..8f1023480e12ccb95ec1c81d5f44af756e3ff0b8 100644
(file)
--- a/
drivers/mmc/host/sdhci_am654.c
+++ b/
drivers/mmc/host/sdhci_am654.c
@@
-554,7
+554,6
@@
static const struct cqhci_host_ops sdhci_am654_cqhci_ops = {
static int sdhci_am654_cqe_add_host(struct sdhci_host *host)
{
struct cqhci_host *cq_host;
- int ret;
cq_host = devm_kzalloc(mmc_dev(host->mmc), sizeof(struct cqhci_host),
GFP_KERNEL);
@@
-568,9
+567,7
@@
static int sdhci_am654_cqe_add_host(struct sdhci_host *host)
host->mmc->caps2 |= MMC_CAP2_CQE;
- ret = cqhci_init(cq_host, host->mmc, 1);
-
- return ret;
+ return cqhci_init(cq_host, host->mmc, 1);
}
static int sdhci_am654_get_otap_delay(struct sdhci_host *host,