]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dmaengine: imx-dma: change return of 'imxdma_sg_next' to void
authorVinod Koul <vkoul@kernel.org>
Sun, 20 Jan 2019 06:12:44 +0000 (11:42 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 20 Jan 2019 06:27:26 +0000 (11:57 +0530)
The return value of function 'imxdma_sg_next' is not checked anywhere,
so make it void return type.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-dma.c

index aba1380c3321efa0df0229143f465dca68b20dbf..5a923490dc8be1cbe36162685e1ae818f9a8735d 100644 (file)
@@ -278,7 +278,7 @@ static int imxdma_hw_chain(struct imxdma_channel *imxdmac)
 /*
  * imxdma_sg_next - prepare next chunk for scatter-gather DMA emulation
  */
-static inline int imxdma_sg_next(struct imxdma_desc *d)
+static inline void imxdma_sg_next(struct imxdma_desc *d)
 {
        struct imxdma_channel *imxdmac = to_imxdma_chan(d->desc.chan);
        struct imxdma_engine *imxdma = imxdmac->imxdma;
@@ -303,8 +303,6 @@ static inline int imxdma_sg_next(struct imxdma_desc *d)
                 imx_dmav1_readl(imxdma, DMA_DAR(imxdmac->channel)),
                 imx_dmav1_readl(imxdma, DMA_SAR(imxdmac->channel)),
                 imx_dmav1_readl(imxdma, DMA_CNTR(imxdmac->channel)));
-
-       return now;
 }
 
 static void imxdma_enable_hw(struct imxdma_desc *d)