diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-07-02 16:17:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-07-14 20:28:08 +0200 |
commit | 309788aa64c083b8294f083e286cba9334d42744 (patch) | |
tree | 29fbedde05771a3285a500951df9795777952e7a | |
parent | 5fe4c6d8a9463ff72c84bf41c564e3d3cbcb4e8f (diff) | |
download | barebox-309788aa64c083b8294f083e286cba9334d42744.tar.gz barebox-309788aa64c083b8294f083e286cba9334d42744.tar.xz |
mci: dw_mmc: remove unused local variable
data_start is assigned once and never used. Drop it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mci/dw_mmc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mci/dw_mmc.c b/drivers/mci/dw_mmc.c index ab8270814b..0ada65e90e 100644 --- a/drivers/mci/dw_mmc.c +++ b/drivers/mci/dw_mmc.c @@ -124,7 +124,7 @@ static int dwmci_prepare_data_dma(struct dwmci_host *host, { unsigned long ctrl; unsigned int i = 0, flags, cnt, blk_cnt; - unsigned long data_start, start_addr; + unsigned start_addr; struct dwmci_idmac *desc = host->idmac; blk_cnt = data->blocks; @@ -134,7 +134,6 @@ static int dwmci_prepare_data_dma(struct dwmci_host *host, dwmci_wait_reset(host, DWMCI_CTRL_FIFO_RESET); - data_start = (uint32_t)desc; dwmci_writel(host, DWMCI_DBADDR, (uint32_t)desc); if (data->flags & MMC_DATA_READ) |