Skip to content

Commit

Permalink
can: ctucanfd: Remove redundant dev_err call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shang XiaoJing authored and Marc Kleine-Budde committed Sep 23, 2022
1 parent 62f102c commit 6eed756
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/can/ctucanfd/ctucanfd_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6eed756

Please sign in to comment.