crypto: amlogic - Remove redundant assignment and error messages
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 11 Sep 2024 12:17:51 +0000 (20:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:05 +0000 (13:22 +0800)
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>
drivers/crypto/amlogic/amlogic-gxl-core.c

index f54ab0d..6fe2486 100644 (file)
@@ -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);