aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-17 06:27:10 -0500
committerVinod Koul <vinod.koul@intel.com>2018-01-19 00:37:50 -0500
commit2cbe23f8fc88587cc4cc10c0d6d938ccb65ec033 (patch)
treebf0eff137448e29d962173771214632cc71485f4
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
dmaengine: stm32-dmamux: Remove unnecessary platform_get_resource() error check
devm_ioremap_resource() already checks if the resource is NULL, so remove the unnecessary platform_get_resource() error check. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/stm32-dmamux.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c
index d5db0f6e1ff8..4dbb30cf94ac 100644
--- a/drivers/dma/stm32-dmamux.c
+++ b/drivers/dma/stm32-dmamux.c
@@ -253,9 +253,6 @@ static int stm32_dmamux_probe(struct platform_device *pdev)
253 } 253 }
254 254
255 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 255 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
256 if (!res)
257 return -ENODEV;
258
259 iomem = devm_ioremap_resource(&pdev->dev, res); 256 iomem = devm_ioremap_resource(&pdev->dev, res);
260 if (IS_ERR(iomem)) 257 if (IS_ERR(iomem))
261 return PTR_ERR(iomem); 258 return PTR_ERR(iomem);