Skip to content

Commit f3eeba0

Browse files
Dan Carpenterarndb
authored andcommitted
dmaengine: ep93xx: Fix a NULL vs IS_ERR() check in probe()
This was intended to be an IS_ERR() check, not a NULL check. The ep93xx_dma_of_probe() function doesn't return NULL pointers. Fixes: 4e8ad5e ("dmaengine: cirrus: Convert to DT for Cirrus EP93xx") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 7427c5b commit f3eeba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/ep93xx_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ static int ep93xx_dma_probe(struct platform_device *pdev)
15041504
int ret;
15051505

15061506
edma = ep93xx_dma_of_probe(pdev);
1507-
if (!edma)
1507+
if (IS_ERR(edma))
15081508
return PTR_ERR(edma);
15091509

15101510
dma_dev = &edma->dma_dev;

0 commit comments

Comments
 (0)