Commit 566b6020 authored by YueHaibing's avatar YueHaibing Committed by Ulf Hansson

mmc: alcor: remove set but not used variables 'len, clock_out'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/mmc/host/alcor.c: In function 'alcor_data_set_dma':
drivers/mmc/host/alcor.c:124:12: warning:
 variable 'len' set but not used [-Wunused-but-set-variable]

drivers/mmc/host/alcor.c:648:15: warning:
 variable 'clock_out' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent c4916c24
...@@ -121,7 +121,7 @@ static void alcor_reset(struct alcor_sdmmc_host *host, u8 val) ...@@ -121,7 +121,7 @@ static void alcor_reset(struct alcor_sdmmc_host *host, u8 val)
static void alcor_data_set_dma(struct alcor_sdmmc_host *host) static void alcor_data_set_dma(struct alcor_sdmmc_host *host)
{ {
struct alcor_pci_priv *priv = host->alcor_pci; struct alcor_pci_priv *priv = host->alcor_pci;
u32 addr, len; u32 addr;
if (!host->sg_count) if (!host->sg_count)
return; return;
...@@ -138,7 +138,6 @@ static void alcor_data_set_dma(struct alcor_sdmmc_host *host) ...@@ -138,7 +138,6 @@ static void alcor_data_set_dma(struct alcor_sdmmc_host *host)
addr = (u32)sg_dma_address(host->sg); addr = (u32)sg_dma_address(host->sg);
len = sg_dma_len(host->sg);
alcor_write32(priv, addr, AU6601_REG_SDMA_ADDR); alcor_write32(priv, addr, AU6601_REG_SDMA_ADDR);
host->sg = sg_next(host->sg); host->sg = sg_next(host->sg);
...@@ -645,7 +644,6 @@ static irqreturn_t alcor_irq(int irq, void *d) ...@@ -645,7 +644,6 @@ static irqreturn_t alcor_irq(int irq, void *d)
static void alcor_set_clock(struct alcor_sdmmc_host *host, unsigned int clock) static void alcor_set_clock(struct alcor_sdmmc_host *host, unsigned int clock)
{ {
struct alcor_pci_priv *priv = host->alcor_pci; struct alcor_pci_priv *priv = host->alcor_pci;
unsigned int clock_out = 0;
int i, diff = 0x7fffffff, tmp_clock = 0; int i, diff = 0x7fffffff, tmp_clock = 0;
u16 clk_src = 0; u16 clk_src = 0;
u8 clk_div = 0; u8 clk_div = 0;
...@@ -670,7 +668,6 @@ static void alcor_set_clock(struct alcor_sdmmc_host *host, unsigned int clock) ...@@ -670,7 +668,6 @@ static void alcor_set_clock(struct alcor_sdmmc_host *host, unsigned int clock)
diff = tmp_diff; diff = tmp_diff;
clk_src = cfg->clk_src_reg; clk_src = cfg->clk_src_reg;
clk_div = tmp_div; clk_div = tmp_div;
clock_out = tmp_clock;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment