Skip to content

Commit

Permalink
dmaengine: imx-dma: change variable 'now' type to size_t
Browse files Browse the repository at this point in the history
now is used to keep size and it is better to change the variable
type to size_t

Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
vinodkoul committed Jan 20, 2019
1 parent 9227ab5 commit da5035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/imx-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit da5035f

Please sign in to comment.