diff options
| -rw-r--r-- | scripts/coccinelle/misc/boolinit.cocci | 5 |
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; | |||
| 136 | @r4 depends on !patch@ | 136 | @r4 depends on !patch@ |
| 137 | bool b; | 137 | bool b; |
| 138 | position p2; | 138 | position p2; |
| 139 | identifier i; | ||
| 139 | constant c != {0,1}; | 140 | constant c != {0,1}; |
| 140 | @@ | 141 | @@ |
| 142 | ( | ||
| 143 | b = i | ||
| 144 | | | ||
| 141 | *b@p2 = c | 145 | *b@p2 = c |
| 146 | ) | ||
| 142 | 147 | ||
| 143 | @script:python depends on org@ | 148 | @script:python depends on org@ |
| 144 | p << r1.p; | 149 | p << r1.p; |
