Skip to content

Commit

Permalink
drop unneeded *s
Browse files Browse the repository at this point in the history
Kfree.cocci only supports org and report mode, so the *s (used for
context mode) are not useful.

Signed-off-by: Julia Lawall <[email protected]>
  • Loading branch information
JuliaLawall committed May 1, 2021
1 parent 5d2db9b commit 32c4656
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/coccinelle/free/kfree.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ position p1;
@@

(
* kfree@p1(E)
kfree@p1(E)
|
* kfree_sensitive@p1(E)
kfree_sensitive@p1(E)
)

@print expression@
Expand Down Expand Up @@ -66,9 +66,9 @@ position ok;

while (1) { ...
(
* kfree@ok(E)
kfree@ok(E)
|
* kfree_sensitive@ok(E)
kfree_sensitive@ok(E)
)
... when != break;
when != goto l;
Expand All @@ -84,9 +84,9 @@ position free.p1!=loop.ok,p2!={print.p,sz.p};
@@

(
* kfree@p1(E,...)
kfree@p1(E,...)
|
* kfree_sensitive@p1(E,...)
kfree_sensitive@p1(E,...)
)
...
(
Expand Down

0 comments on commit 32c4656

Please sign in to comment.