aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2020-04-04 17:34:53 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-04-16 16:49:22 +1000
commit56b80bdee4a16cf330562801667a1e62fe7b9255 (patch)
treed2a3fefdce0677ceea6d23cec3cad60d97c0659f /drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
parenthwrng: xgene - Delete an error message in xgene_rng_probe() (diff)
downloadwireguard-linux-56b80bdee4a16cf330562801667a1e62fe7b9255.tar.xz
wireguard-linux-56b80bdee4a16cf330562801667a1e62fe7b9255.zip
crypto: sun8i-ss - Delete an error message in sun8i_ss_probe()
The function “platform_get_irq” can log an error already. Thus omit a redundant message for the exception handling in the calling function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
index 6b301afffd11..a1fb2fbdbe7b 100644
--- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
+++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
@@ -537,10 +537,8 @@ static int sun8i_ss_probe(struct platform_device *pdev)
return err;
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(ss->dev, "Cannot get SecuritySystem IRQ\n");
+ if (irq < 0)
return irq;
- }
ss->reset = devm_reset_control_get(&pdev->dev, NULL);
if (IS_ERR(ss->reset)) {