From: Shang XiaoJing Date: Fri, 23 Sep 2022 10:01:59 +0000 (+0800) Subject: crypto: aspeed - Remove redundant dev_err call X-Git-Tag: v6.6.17~6333^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b411b1a0c8bddd470fc8c3457629ac25a168cba0;p=platform%2Fkernel%2Flinux-rpi.git crypto: aspeed - 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/aspeed/aspeed-hace.c b/drivers/crypto/aspeed/aspeed-hace.c index f7f1d33..656cb92 100644 --- a/drivers/crypto/aspeed/aspeed-hace.c +++ b/drivers/crypto/aspeed/aspeed-hace.c @@ -123,10 +123,8 @@ static int aspeed_hace_probe(struct platform_device *pdev) platform_set_drvdata(pdev, hace_dev); hace_dev->regs = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(hace_dev->regs)) { - dev_err(&pdev->dev, "Failed to map resources\n"); + if (IS_ERR(hace_dev->regs)) return PTR_ERR(hace_dev->regs); - } /* Get irq number and register it */ hace_dev->irq = platform_get_irq(pdev, 0);