]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mmc: sdhci: Remove unused ret variables
authorMarkus Pargmann <mpa@pengutronix.de>
Wed, 4 Jun 2014 13:24:29 +0000 (15:24 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2014 09:25:59 +0000 (11:25 +0200)
Remove those unused ret variables to make it obvious that these function
will not return any errors in the current implementation.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c

index ee524b06db14592bc4ef31497466d67d349c1b93..c23a87285a9532580f993675ce9fa915ea3e27c0 100644 (file)
@@ -2649,7 +2649,6 @@ static void sdhci_runtime_pm_bus_off(struct sdhci_host *host)
 int sdhci_runtime_suspend_host(struct sdhci_host *host)
 {
        unsigned long flags;
-       int ret = 0;
 
        /* Disable tuning since we are suspending */
        if (host->flags & SDHCI_USING_RETUNING_TIMER) {
@@ -2669,14 +2668,14 @@ int sdhci_runtime_suspend_host(struct sdhci_host *host)
        host->runtime_suspended = true;
        spin_unlock_irqrestore(&host->lock, flags);
 
-       return ret;
+       return 0;
 }
 EXPORT_SYMBOL_GPL(sdhci_runtime_suspend_host);
 
 int sdhci_runtime_resume_host(struct sdhci_host *host)
 {
        unsigned long flags;
-       int ret = 0, host_flags = host->flags;
+       int host_flags = host->flags;
 
        if (host_flags & (SDHCI_USE_SDMA | SDHCI_USE_ADMA)) {
                if (host->ops->enable_dma)
@@ -2715,7 +2714,7 @@ int sdhci_runtime_resume_host(struct sdhci_host *host)
 
        spin_unlock_irqrestore(&host->lock, flags);
 
-       return ret;
+       return 0;
 }
 EXPORT_SYMBOL_GPL(sdhci_runtime_resume_host);