dmaengine: zynqmp_dma: Remove max len check in zynqmp_dma_prep_memcpy

Remove check for "len > ZYNQMP_DMA_MAX_TRANS_LEN" as its not needed.
If the length is larger, the transfer is split up into multiple parts
with the max descriptor length already.

Signed-off-by: Stefan Roese <[email protected]>
Cc: Kedareswara rao Appana <[email protected]>
Cc: Vinod Koul <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
Stefan Roese 2017-06-23 11:05:49 +02:00 • committed by Vinod Koul
commit 82474dade7

View file

@ -794,9 +794,6 @@ static struct dma_async_tx_descriptor *zynqmp_dma_prep_memcpy(
chan = to_chan(dchan);
if (len > ZYNQMP_DMA_MAX_TRANS_LEN)
return NULL;
desc_cnt = DIV_ROUND_UP(len, ZYNQMP_DMA_MAX_TRANS_LEN);
spin_lock_bh(&chan->lock);