diff options
author | Tony Lin <tony.lin@freescale.com> | 2011-12-28 10:34:17 +0800 |
---|---|---|
committer | Tony Lin <tony.lin@freescale.com> | 2011-12-28 10:35:27 +0800 |
commit | 42cb06ef75583603f44b2c3da668ef43af53dedc (patch) | |
tree | a9795ad73acedf53ddbb0feb4aebeeda608a6ebb | |
parent | a6b816bb61e8974ca01afb5da34663a0374c3c8f (diff) |
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 <tony.lin@freescale.com>
-rw-r--r-- | drivers/mmc/host/sdhci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index e1e7b12f496..ee183c57a08 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -50,7 +50,6 @@ static void sdhci_finish_command(struct sdhci_host *); 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); @@ -1751,7 +1750,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; } |