Skip to contentSkip to conversation

can: ctucanfd: Remove redundant dev_err call

PATCH Applied Shang XiaoJing 2 participants 2 messages Sep 23, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 can: ctucanfd: Remove redundant dev_err call

devm_ioremap_resource() prints error message in itself. Remove the dev_err call to avoid redundant error message.

---
 drivers/net/can/ctucanfd/ctucanfd_platform.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/can/ctucanfd/ctucanfd_platform.c +0 -1
index 89d54c2151e1..f83684f006ea 100644
@@ -58,7 +58,6 @@ static int ctucan_platform_probe(struct platform_device *pdev)
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	addr = devm_ioremap_resource(dev, res);
 	if (IS_ERR(addr)) {
-		dev_err(dev, "Cannot remap address.\n");
 		ret = PTR_ERR(addr);
 		goto err;
 	}
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Shang XiaoJing

devm_ioremap_resource() prints error message in itself. Remove the dev_err call to avoid redundant error message.

Applied to linux-can-next.

Thanks,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |