crypto: inside-secure - fix platform_get_irq.cocci warnings
authorTian Tao <tiantao6@hisilicon.com>
Mon, 14 Dec 2020 11:44:40 +0000 (19:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 2 Jan 2021 21:41:35 +0000 (08:41 +1100)
Remove dev_err() messages after platform_get_irq*() failures.
drivers/crypto/inside-secure/safexcel.c: line 1161 is redundant
because platform_get_irq() already prints an error

Generated by: scripts/coccinelle/api/platform_get_irq.cocci

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Acked-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c

index 30aedfc..6364583 100644 (file)
@@ -1166,11 +1166,8 @@ static int safexcel_request_ring_irq(void *pdev, int irqid,
                dev = &plf_pdev->dev;
                irq = platform_get_irq_byname(plf_pdev, irq_name);
 
-               if (irq < 0) {
-                       dev_err(dev, "unable to get IRQ '%s' (err %d)\n",
-                               irq_name, irq);
+               if (irq < 0)
                        return irq;
-               }
        } else {
                return -ENXIO;
        }