can: ctucanfd: Remove redundant dev_err call
Subsystems (4)
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.
Signed-off-by Shang XiaoJing <[email protected]>
--- drivers/net/can/ctucanfd/ctucanfd_platform.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/can/ctucanfd/ctucanfd_platform.c +0 -1
@@ -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
Quoted 4 lines · Shang XiaoJing
devm_ioremap_resource()prints error message in itself. Remove thedev_errcall to avoid redundant error message.Signed-off-by Shang XiaoJing <[email protected]>
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 |