diff options
author | Vinod Koul <vkoul@kernel.org> | 2018-07-02 09:12:51 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-07-02 09:12:51 -0400 |
commit | ad78b000fc100aec89ebe1ced9ed80e696444123 (patch) | |
tree | aa779c24a275e660d9cadad778f02f01696b2702 | |
parent | c1199875d327a9b3bbb3fb1cca0d467d3e625fbb (diff) |
dmaengine: imx-sdma: remove unused variable
The variable is no longer used, though it is set, so remove it
drivers/dma/imx-sdma.c:1298:6:
warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int ret, i, count;
^~~
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/imx-sdma.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index dfd1fbbe7ba8..b78146b4ea01 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1295,7 +1295,7 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg( | |||
1295 | { | 1295 | { |
1296 | struct sdma_channel *sdmac = to_sdma_chan(chan); | 1296 | struct sdma_channel *sdmac = to_sdma_chan(chan); |
1297 | struct sdma_engine *sdma = sdmac->sdma; | 1297 | struct sdma_engine *sdma = sdmac->sdma; |
1298 | int ret, i, count; | 1298 | int i, count; |
1299 | int channel = sdmac->channel; | 1299 | int channel = sdmac->channel; |
1300 | struct scatterlist *sg; | 1300 | struct scatterlist *sg; |
1301 | struct sdma_desc *desc; | 1301 | struct sdma_desc *desc; |
@@ -1318,17 +1318,14 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg( | |||
1318 | if (count > 0xffff) { | 1318 | if (count > 0xffff) { |
1319 | dev_err(sdma->dev, "SDMA channel %d: maximum bytes for sg entry exceeded: %d > %d\n", | 1319 | dev_err(sdma->dev, "SDMA channel %d: maximum bytes for sg entry exceeded: %d > %d\n", |
1320 | channel, count, 0xffff); | 1320 | channel, count, 0xffff); |
1321 | ret = -EINVAL; | ||
1322 | goto err_bd_out; | 1321 | goto err_bd_out; |
1323 | } | 1322 | } |
1324 | 1323 | ||
1325 | bd->mode.count = count; | 1324 | bd->mode.count = count; |
1326 | desc->chn_count += count; | 1325 | desc->chn_count += count; |
1327 | 1326 | ||
1328 | if (sdmac->word_size > DMA_SLAVE_BUSWIDTH_4_BYTES) { | 1327 | if (sdmac->word_size > DMA_SLAVE_BUSWIDTH_4_BYTES) |
1329 | ret = -EINVAL; | ||
1330 | goto err_bd_out; | 1328 | goto err_bd_out; |
1331 | } | ||
1332 | 1329 | ||
1333 | switch (sdmac->word_size) { | 1330 | switch (sdmac->word_size) { |
1334 | case DMA_SLAVE_BUSWIDTH_4_BYTES: | 1331 | case DMA_SLAVE_BUSWIDTH_4_BYTES: |