Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: stm32-mdma: Remove dead code in stm32_mdma_irq_handler()

Local variable chan is initialized by an address of element of chan array
that is part of stm32_mdma_device struct, so it does not make sense to
compare chan with NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: a4ffb13c8946 ("dmaengine: Add STM32 MDMA driver")
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/1655072638-9103-1-git-send-email-khoroshilov@ispras.ru
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Alexey Khoroshilov and committed by
Vinod Koul
f7a03501 5dc86388

-5
-5
drivers/dma/stm32-mdma.c
··· 1328 1328 return IRQ_NONE; 1329 1329 } 1330 1330 id = __ffs(status); 1331 - 1332 1331 chan = &dmadev->chan[id]; 1333 - if (!chan) { 1334 - dev_warn(mdma2dev(dmadev), "MDMA channel not initialized\n"); 1335 - return IRQ_NONE; 1336 - } 1337 1332 1338 1333 /* Handle interrupt for the channel */ 1339 1334 spin_lock(&chan->vchan.lock);