]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00170998 [MX6Q MMC]build warning
authorTony Lin <tony.lin@freescale.com>
Wed, 28 Dec 2011 02:34:17 +0000 (10:34 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:43 +0000 (08:33 +0200)
fix following build warning:

drivers/mmc/host/sdhci.c: In function 'sdhci_clk_worker':
drivers/mmc/host/sdhci.c:53: warning: unused variable 'flags'
drivers/mmc/host/sdhci.c: In function 'sdhci_resume_host':
drivers/mmc/host/sdhci.c:1751:
warning: 'ret' may be used uninitialized in this function

Signed-off-by: Tony Lin <tony.lin@freescale.com>
drivers/mmc/host/sdhci.c

index b3703d3cf6373575cecea9546ffe71eeb06e9b7a..b11f7277ceb36e51e9c8a1ddbf0c18e97b826ee9 100755 (executable)
@@ -53,7 +53,6 @@ static void sdhci_tuning_timer(unsigned long data);
 
 static void sdhci_clk_worker(struct work_struct *work)
 {
-       unsigned long flags;
        struct sdhci_host *host =
                container_of(work, struct sdhci_host, clk_worker.work);
 
@@ -2323,7 +2322,7 @@ int sdhci_resume_host(struct sdhci_host *host)
        int ret;
 
        if (host->vmmc) {
-               int ret = regulator_enable(host->vmmc);
+               ret = regulator_enable(host->vmmc);
                if (ret)
                        goto out;
        }