Commit 7334a4be authored by Tian Tao's avatar Tian Tao Committed by Herbert Xu
Browse files

crypto: inside-secure - fix platform_get_irq.cocci warnings



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: default avatarTian Tao <tiantao6@hisilicon.com>
Acked-by: default avatarAntoine Tenart <atenart@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0eb76ba2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;
	}