summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/allwinner/sun8i-ce
diff options
context:
space:
mode:
authorChen Zhou <chenzhou10@huawei.com>2020-02-05 15:01:30 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-02-13 10:05:26 +0100
commit9ce9a5d5c362e392791319edef4ef918ed0ddfca (patch)
tree665e5f995e2417db91ba0ae216188d230d665fc3 /drivers/crypto/allwinner/sun8i-ce
parentcrypto: chelsio - Print the chcr driver information while module load. (diff)
downloadlinux-9ce9a5d5c362e392791319edef4ef918ed0ddfca.tar.xz
linux-9ce9a5d5c362e392791319edef4ef918ed0ddfca.zip
crypto: allwinner - remove redundant platform_get_irq error message
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>
Diffstat (limited to 'drivers/crypto/allwinner/sun8i-ce')
-rw-r--r--drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
index f72346a44e69..3e4e4bbda34c 100644
--- a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
+++ b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
@@ -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)) {