Commit f67cd7f6 authored by Yangtao Li's avatar Yangtao Li Committed by Ulf Hansson

mmc: sdhci-of-aspeed: remove unneeded variables

The variable 'dead' is redundant, let's remove it.
Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230727070051.17778-32-frank.li@vivo.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent b9c3ea46
......@@ -454,12 +454,11 @@ static int aspeed_sdhci_remove(struct platform_device *pdev)
{
struct sdhci_pltfm_host *pltfm_host;
struct sdhci_host *host;
int dead = 0;
host = platform_get_drvdata(pdev);
pltfm_host = sdhci_priv(host);
sdhci_remove_host(host, dead);
sdhci_remove_host(host, 0);
clk_disable_unprepare(pltfm_host->clk);
......
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