Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da5035f3 authored by Vinod Koul's avatar Vinod Koul
Browse files

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: default avatarVinod Koul <vkoul@kernel.org>
parent 9227ab56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)