crypto: allwinner - remove redundant platform_get_irq error message
authorChen Zhou <chenzhou10@huawei.com>
Wed, 5 Feb 2020 14:01:30 +0000 (22:01 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Feb 2020 09:05:26 +0000 (17:05 +0800)
Function dev_err() after platform_get_irq() is redundant because
platform_get_irq() already prints an error.

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c

index f72346a..3e4e4bb 100644 (file)
@@ -565,10 +565,8 @@ static int sun8i_ce_probe(struct platform_device *pdev)
 
        /* Get Non Secure IRQ */
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(ce->dev, "Cannot get CryptoEngine Non-secure IRQ\n");
+       if (irq < 0)
                return irq;
-       }
 
        ce->reset = devm_reset_control_get(&pdev->dev, NULL);
        if (IS_ERR(ce->reset)) {