Skip to content

Commit

Permalink
crypto: aspeed - 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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Shang XiaoJing authored and Herbert Xu committed Sep 30, 2022
1 parent d438d94 commit b411b1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/crypto/aspeed/aspeed-hace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b411b1a

Please sign in to comment.