summaryrefslogtreecommitdiff
path: root/scripts/coccinelle/misc/boolinit.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/coccinelle/misc/boolinit.cocci')
-rw-r--r--scripts/coccinelle/misc/boolinit.cocci5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/coccinelle/misc/boolinit.cocci b/scripts/coccinelle/misc/boolinit.cocci
index b0584a33c921..aabb581fab5c 100644
--- a/scripts/coccinelle/misc/boolinit.cocci
+++ b/scripts/coccinelle/misc/boolinit.cocci
@@ -136,9 +136,14 @@ position p1;
@r4 depends on !patch@
bool b;
position p2;
+identifier i;
constant c != {0,1};
@@
+(
+ b = i
+|
*b@p2 = c
+)
@script:python depends on org@
p << r1.p;