Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4054393 authored by Amelie Delaunay's avatar Amelie Delaunay Committed by Vinod Koul
Browse files

dmaengine: stm32-dma: Fix redundant call to platform_get_irq



Commit c6504be5 ("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: c6504be5 ("dmaengine: stm32-dma: Fix unsigned variable compared with zero")
Signed-off-by: default avatarAmelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent d8b9626a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1366,7 +1366,6 @@ static int stm32_dma_probe(struct platform_device *pdev)

	for (i = 0; i < STM32_DMA_MAX_CHANNELS; i++) {
		chan = &dmadev->chan[i];
		chan->irq = platform_get_irq(pdev, i);
		ret = platform_get_irq(pdev, i);
		if (ret < 0)  {
			if (ret != -EPROBE_DEFER)