From: Tony Lin Date: Wed, 28 Dec 2011 02:34:17 +0000 (+0800) Subject: ENGR00170998 [MX6Q MMC]build warning X-Git-Tag: v3.0.35-fsl~1698 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f4375bfc3b3ed522aafeed4089a1b9cc8bf94422;p=karo-tx-linux.git ENGR00170998 [MX6Q MMC]build warning 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 --- diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index b3703d3cf637..b11f7277ceb3 100755 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -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; }