dmaengine: ep93xx: don't use variables defined in global scope
The driver uses same variable name in local and global context in a function, rename the local one for better readability. Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
567df5e977
commit
8f913bffb4
@ -1047,11 +1047,11 @@ ep93xx_dma_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
|
|||||||
|
|
||||||
first = NULL;
|
first = NULL;
|
||||||
for_each_sg(sgl, sg, sg_len, i) {
|
for_each_sg(sgl, sg, sg_len, i) {
|
||||||
size_t sg_len = sg_dma_len(sg);
|
size_t len = sg_dma_len(sg);
|
||||||
|
|
||||||
if (sg_len > DMA_MAX_CHAN_BYTES) {
|
if (len > DMA_MAX_CHAN_BYTES) {
|
||||||
dev_warn(chan2dev(edmac), "too big transfer size %zu\n",
|
dev_warn(chan2dev(edmac), "too big transfer size %zu\n",
|
||||||
sg_len);
|
len);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1068,7 +1068,7 @@ ep93xx_dma_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
|
|||||||
desc->src_addr = edmac->runtime_addr;
|
desc->src_addr = edmac->runtime_addr;
|
||||||
desc->dst_addr = sg_dma_address(sg);
|
desc->dst_addr = sg_dma_address(sg);
|
||||||
}
|
}
|
||||||
desc->size = sg_len;
|
desc->size = len;
|
||||||
|
|
||||||
if (!first)
|
if (!first)
|
||||||
first = desc;
|
first = desc;
|
||||||
|
Loading…
Reference in New Issue
Block a user