]> git.baikalelectronics.ru Git - kernel.git/commitdiff
can: ctucanfd: Remove redundant dev_err call
authorShang XiaoJing <shangxiaojing@huawei.com>
Fri, 23 Sep 2022 09:58:35 +0000 (17:58 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 23 Sep 2022 11:55:01 +0000 (13:55 +0200)
devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/all/20220923095835.14647-1-shangxiaojing@huawei.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ctucanfd/ctucanfd_platform.c

index 89d54c2151e190fe407b1060310bbccde987bfbb..f83684f006ea133a2c747b06ae62e52831a1a36c 100644 (file)
@@ -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;
        }