diff options
author | Amelie Delaunay <amelie.delaunay@st.com> | 2019-05-07 03:54:41 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-05-21 00:39:24 -0400 |
commit | e40543931fe34d7808bf87398a0daca44c919d25 (patch) | |
tree | 8592ec98fe2690eae1511079ccbe54ce6d4a8337 | |
parent | d8b9626af54605c30f0ff4eebf6f7360e2212a89 (diff) |
dmaengine: stm32-dma: Fix redundant call to platform_get_irq
Commit c6504be53972 ("dmaengine: stm32-dma: Fix unsigned variable compared
with zero") duplicated the call to platform_get_irq.
So remove the first call to platform_get_irq.
Fixes: c6504be53972 ("dmaengine: stm32-dma: Fix unsigned variable compared with zero")
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/stm32-dma.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 88d9c6c4389f..67fdd02f9845 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c | |||
@@ -1366,7 +1366,6 @@ static int stm32_dma_probe(struct platform_device *pdev) | |||
1366 | 1366 | ||
1367 | for (i = 0; i < STM32_DMA_MAX_CHANNELS; i++) { | 1367 | for (i = 0; i < STM32_DMA_MAX_CHANNELS; i++) { |
1368 | chan = &dmadev->chan[i]; | 1368 | chan = &dmadev->chan[i]; |
1369 | chan->irq = platform_get_irq(pdev, i); | ||
1370 | ret = platform_get_irq(pdev, i); | 1369 | ret = platform_get_irq(pdev, i); |
1371 | if (ret < 0) { | 1370 | if (ret < 0) { |
1372 | if (ret != -EPROBE_DEFER) | 1371 | if (ret != -EPROBE_DEFER) |