Commit c0470f43 authored by ye xingchen's avatar ye xingchen Committed by Ulf Hansson

mmc: sdhci_am654: Remove the unneeded result variable

Return the value cqhci_init() directly instead of storing it in another
redundant variable.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20220830083349.276709-1-ye.xingchen@zte.com.cnSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 066ecde6
...@@ -554,7 +554,6 @@ static const struct cqhci_host_ops sdhci_am654_cqhci_ops = { ...@@ -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) static int sdhci_am654_cqe_add_host(struct sdhci_host *host)
{ {
struct cqhci_host *cq_host; struct cqhci_host *cq_host;
int ret;
cq_host = devm_kzalloc(mmc_dev(host->mmc), sizeof(struct cqhci_host), cq_host = devm_kzalloc(mmc_dev(host->mmc), sizeof(struct cqhci_host),
GFP_KERNEL); GFP_KERNEL);
...@@ -568,9 +567,7 @@ static int sdhci_am654_cqe_add_host(struct sdhci_host *host) ...@@ -568,9 +567,7 @@ static int sdhci_am654_cqe_add_host(struct sdhci_host *host)
host->mmc->caps2 |= MMC_CAP2_CQE; host->mmc->caps2 |= MMC_CAP2_CQE;
ret = cqhci_init(cq_host, host->mmc, 1); return cqhci_init(cq_host, host->mmc, 1);
return ret;
} }
static int sdhci_am654_get_otap_delay(struct sdhci_host *host, static int sdhci_am654_get_otap_delay(struct sdhci_host *host,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment