Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Tian Tao <tiantao6@hisilicon.com>
Acked-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tian Tao and committed by
Herbert Xu
7334a4be 0eb76ba2

+1 -4
+1 -4
drivers/crypto/inside-secure/safexcel.c
··· 1166 1166 dev = &plf_pdev->dev; 1167 1167 irq = platform_get_irq_byname(plf_pdev, irq_name); 1168 1168 1169 - if (irq < 0) { 1170 - dev_err(dev, "unable to get IRQ '%s' (err %d)\n", 1171 - irq_name, irq); 1169 + if (irq < 0) 1172 1170 return irq; 1173 - } 1174 1171 } else { 1175 1172 return -ENXIO; 1176 1173 }