diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-09-13 17:35:11 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-09-16 11:17:15 +0000 |
commit | f3eeba0645dcb48c90f64ae6193148bf881429a8 (patch) | |
tree | bfb44945f22ab017f877d8fd0f7437702f1a4259 /drivers/dma | |
parent | 7427c5b34fbe191451a48c69c392c85b648caa4f (diff) | |
download | lwn-f3eeba0645dcb48c90f64ae6193148bf881429a8.tar.gz lwn-f3eeba0645dcb48c90f64ae6193148bf881429a8.zip |
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: 4e8ad5ed845b ("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>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ep93xx_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index 43c4241af7f5..7de04e8ace44 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c @@ -1504,7 +1504,7 @@ static int ep93xx_dma_probe(struct platform_device *pdev) int ret; edma = ep93xx_dma_of_probe(pdev); - if (!edma) + if (IS_ERR(edma)) return PTR_ERR(edma); dma_dev = &edma->dma_dev; |