Allow multiple calls to dev_err in the if branch under the call to the platform_get_irq function. Remove only the first one. Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx> --- scripts/coccinelle/api/platform_get_irq.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coccinelle/api/platform_get_irq.cocci b/scripts/coccinelle/api/platform_get_irq.cocci index 7ac32ee..e5d04fb 100644 --- a/scripts/coccinelle/api/platform_get_irq.cocci +++ b/scripts/coccinelle/api/platform_get_irq.cocci @@ -70,7 +70,7 @@ if ( \( ret < 0 \| ret <= 0 \) ) ... -dev_err(...); ) -... +... when any } @r depends on org || report@