summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-07-27 09:00:21 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2023-08-15 12:45:05 +0200
commitf67cd7f6d3678dbe8a370655f41d4a9d85c73bbc (patch)
tree850d211ffb75c201b9d708e2aed84febc86751b2
parentmmc: sdhci-omap: Convert to platform remove callback returning void (diff)
downloadlinux-f67cd7f6d3678dbe8a370655f41d4a9d85c73bbc.tar.xz
linux-f67cd7f6d3678dbe8a370655f41d4a9d85c73bbc.zip
mmc: sdhci-of-aspeed: remove unneeded variables
The variable 'dead' is redundant, let's remove it. Signed-off-by: Yangtao Li <frank.li@vivo.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230727070051.17778-32-frank.li@vivo.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/sdhci-of-aspeed.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c
index 25b4073f698b..b4867bb4a564 100644
--- a/drivers/mmc/host/sdhci-of-aspeed.c
+++ b/drivers/mmc/host/sdhci-of-aspeed.c
@@ -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);