Re: [Cocci] [PATCH 1/4 v2] coccinelle: platform_get_irq: simplify context case

2019-11-20 Thread Markus Elfring
> if ( \( ret < 0 \| ret <= 0 \) ) Can it make sense to specify the comparison by a constraint for a metavariable of the type “binary operator” instead of a SmPL disjunction? Regards, Markus ___ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.

[Cocci] [PATCH 1/4 v2] coccinelle: platform_get_irq: simplify context case

2019-11-19 Thread Julia Lawall
Simplify to just report on the first dev_err, whereever it occurs. Signed-off-by: Julia Lawall --- v2: no change scripts/coccinelle/api/platform_get_irq.cocci |9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/coccinelle/api/platform_get_irq.cocci b/scripts