summaryrefslogtreecommitdiff
path: root/drivers/dma/imx-dma.c
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2019-01-20 09:12:44 +0300
committerVinod Koul <vkoul@kernel.org>2019-01-20 09:12:44 +0300
commitda5035f3773632a7b11a2dc8ca15291b8e2817df (patch)
tree79058a8ab38ea5e4b10f46ce43b315d3dfb1d6c6 /drivers/dma/imx-dma.c
parent9227ab5643cb8350449502dd9e3168a873ab0e3b (diff)
downloadlinux-da5035f3773632a7b11a2dc8ca15291b8e2817df.tar.xz
dmaengine: imx-dma: change variable 'now' type to size_t
now is used to keep size and it is better to change the variable type to size_t Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/imx-dma.c')
-rw-r--r--drivers/dma/imx-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index fa3ef43fe314..aba1380c3321 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -283,7 +283,7 @@ static inline int imxdma_sg_next(struct imxdma_desc *d)
struct imxdma_channel *imxdmac = to_imxdma_chan(d->desc.chan);
struct imxdma_engine *imxdma = imxdmac->imxdma;
struct scatterlist *sg = d->sg;
- unsigned long now;
+ size_t now;
now = min_t(size_t, d->len, sg_dma_len(sg));
if (d->len != IMX_DMA_LENGTH_LOOP)