Skip to contentSkip to conversation

memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe()

PATCH Applied Qiheng Lin 2 participants 2 messages Mar 31, 2021 – Apr 1, 2021

Subsystems (2)
lore
Share & tools
lore

Qiheng Lin

author
#0 lore raw

PATCH 1/1 memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/memory/fsl-corenet-cf.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/memory/fsl-corenet-cf.c +1 -3
index 0309bd5a1800..e15c962d4540 100644
@@ -192,10 +192,8 @@ static int ccf_probe(struct platform_device *pdev)
 	}
 
 	ccf->regs = devm_ioremap_resource(&pdev->dev, r);
-	if (IS_ERR(ccf->regs)) {
-		dev_err(&pdev->dev, "%s: can't map mem resource\n", __func__);
+	if (IS_ERR(ccf->regs))
 		return PTR_ERR(ccf->regs);
-	}
 
 	ccf->dev = &pdev->dev;
 	ccf->info = match->data;
#1 lore raw
Quoted 3 lines · Qiheng Lin

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

Applied, thanks!

[1/1] memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe()

      commit: b11a188aef6d19fe3ca505831d9c627ef683476f

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>