Skip to contentSkip to conversation

dmaengine: imx-dma: change return of 'imxdma_sg_next' to void

PATCH New Vinod Koul 1 participant 1 message Jan 20, 2019

Subsystems (2)
lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 2/2 dmaengine: imx-dma: change return of 'imxdma_sg_next' to void

The return value of function 'imxdma_sg_next' is not checked anywhere, so make it void return type.

---
 drivers/dma/imx-dma.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/dma/imx-dma.c +1 -3
index aba1380c3321..5a923490dc8b 100644
@@ -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)