* [1/2] dmaengine: imx-dma: change variable 'now' type to size_t
@ 2019-01-20 6:36 Vinod Koul
0 siblings, 0 replies; only message in thread
From: Vinod Koul @ 2019-01-20 6:36 UTC (permalink / raw)
To: dmaengine; +Cc: festevam, Vinod Koul
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>
---
drivers/dma/imx-dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-20 6:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-20 6:36 [1/2] dmaengine: imx-dma: change variable 'now' type to size_t Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).