mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
dmaengine: stm32-dma: Fix redundant call to platform_get_irq
Commitc6504be539
("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:c6504be539
("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>
This commit is contained in:
parent
d8b9626af5
commit
e40543931f
@ -1366,7 +1366,6 @@ static int stm32_dma_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
for (i = 0; i < STM32_DMA_MAX_CHANNELS; i++) {
|
for (i = 0; i < STM32_DMA_MAX_CHANNELS; i++) {
|
||||||
chan = &dmadev->chan[i];
|
chan = &dmadev->chan[i];
|
||||||
chan->irq = platform_get_irq(pdev, i);
|
|
||||||
ret = platform_get_irq(pdev, i);
|
ret = platform_get_irq(pdev, i);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (ret != -EPROBE_DEFER)
|
if (ret != -EPROBE_DEFER)
|
||||||
|
Loading…
Reference in New Issue
Block a user