Skip to contentSkip to conversation

mailbox: platform_mhu: Remove redundant dev_err call in platform_mhu_probe()

PATCH New Wei Yongjun 1 participant 1 message Sep 15, 2016 Mailbox API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mailbox: platform_mhu: Remove redundant dev_err call in platform_mhu_probe()

From: Wei Yongjun <[email protected]>

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

---
 drivers/mailbox/platform_mhu.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mailbox/platform_mhu.c +1 -3
index e13201a..b3b5acc 100644
@@ -137,10 +137,8 @@ static int platform_mhu_probe(struct platform_device *pdev)
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	mhu->base = devm_ioremap_resource(dev, res);
-	if (IS_ERR(mhu->base)) {
-		dev_err(dev, "ioremap failed\n");
+	if (IS_ERR(mhu->base))
 		return PTR_ERR(mhu->base);
-	}
 
 	for (i = 0; i < MHU_CHANS; i++) {
 		mhu->chan[i].con_priv = &mhu->mlink[i];