Skip to contentSkip to conversation

dmaengine: imx-dma: change variable 'now' type to size_t

PATCH New Vinod Koul 1 participant 1 message Jan 20, 2019

Subsystems (2)
lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 1/2 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

---
 drivers/dma/imx-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/imx-dma.c +1 -1
index fa3ef43fe314..aba1380c3321 100644
@@ -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)