projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9227ab5
)
dmaengine: imx-dma: change variable 'now' type to size_t
author
Vinod Koul
<vkoul@kernel.org>
Sun, 20 Jan 2019 06:12:44 +0000
(11:42 +0530)
committer
Vinod Koul
<vkoul@kernel.org>
Sun, 20 Jan 2019 06:12:44 +0000
(11:42 +0530)
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
patch
|
blob
|
history
diff --git
a/drivers/dma/imx-dma.c
b/drivers/dma/imx-dma.c
index
fa3ef43
..
aba1380
100644
(file)
--- 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)