summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2024-09-11 20:17:51 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2024-10-05 13:22:05 +0800
commitf74032baac84a93f5d3027ba00e000630f13d620 (patch)
treed1639d05d3aa96e01852fbbc56421b6a36c0c6ad /drivers/crypto
parentb9cbf6916e0a6899bc67ee574993b7f24d3f606b (diff)
downloadlwn-f74032baac84a93f5d3027ba00e000630f13d620.tar.gz
lwn-f74032baac84a93f5d3027ba00e000630f13d620.zip
crypto: amlogic - Remove redundant assignment and error messages
In the function meson_crypto_probe, devm_platform_ioremap_resource() have already contains error message, so remove the redundant assignment and error messages. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/amlogic/amlogic-gxl-core.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/crypto/amlogic/amlogic-gxl-core.c b/drivers/crypto/amlogic/amlogic-gxl-core.c
index f54ab0d0b1e8..6fe2486204db 100644
--- a/drivers/crypto/amlogic/amlogic-gxl-core.c
+++ b/drivers/crypto/amlogic/amlogic-gxl-core.c
@@ -240,11 +240,9 @@ static int meson_crypto_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, mc);
mc->base = devm_platform_ioremap_resource(pdev, 0);
- if (IS_ERR(mc->base)) {
- err = PTR_ERR(mc->base);
- dev_err(&pdev->dev, "Cannot request MMIO err=%d\n", err);
- return err;
- }
+ if (IS_ERR(mc->base))
+ return PTR_ERR(mc->base);
+
mc->busclk = devm_clk_get(&pdev->dev, "blkmv");
if (IS_ERR(mc->busclk)) {
err = PTR_ERR(mc->busclk);