diff options
| author | Yangtao Li <[email protected]> | 2023-07-27 15:00:21 +0800 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2023-08-15 12:45:05 +0200 |
| commit | f67cd7f6d3678dbe8a370655f41d4a9d85c73bbc (patch) | |
| tree | 850d211ffb75c201b9d708e2aed84febc86751b2 | |
| parent | b9c3ea46595094eed23f9768b634e4e6f017e0d9 (diff) | |
mmc: sdhci-of-aspeed: remove unneeded variables
The variable 'dead' is redundant, let's remove it.
Signed-off-by: Yangtao Li <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
| -rw-r--r-- | drivers/mmc/host/sdhci-of-aspeed.c | 3 |
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); |