diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-01-30 18:27:04 +0300 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-02-19 00:05:30 +0300 |
commit | 8f551befa2269dc244bcfbcad795132f833cb71c (patch) | |
tree | 03ca57d323adc3e09bdf4ab4f2ba7f20a33dd8d3 /scripts/coccinelle/misc/badty.cocci | |
parent | 0a9e7da660b09f5304bf2b4d3fa8abc938af439a (diff) | |
download | linux-8f551befa2269dc244bcfbcad795132f833cb71c.tar.xz |
Coccinelle: reduce rule applicability
Rule r is only use in org or report mode, so only execute it in those
cases.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/coccinelle/misc/badty.cocci')
-rw-r--r-- | scripts/coccinelle/misc/badty.cocci | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccinelle/misc/badty.cocci b/scripts/coccinelle/misc/badty.cocci index 2fc06fc71927..481cf301ccfc 100644 --- a/scripts/coccinelle/misc/badty.cocci +++ b/scripts/coccinelle/misc/badty.cocci @@ -50,7 +50,7 @@ T **x; // For org and report mode //---------------------------------------------------------- -@r disable sizeof_type_expr@ +@r depends on (org || report) disable sizeof_type_expr@ type T; T **x; position p; |