diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-01-31 11:26:57 -0500 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.com> | 2016-02-18 16:08:09 -0500 |
| commit | 79ff2b3deae7db21e73f1e0add92c988135defd2 (patch) | |
| tree | c1185b6e6ed9301b3692126c2f311d0a0a0b3c47 /scripts | |
| parent | c7eaa8873b3e50667e0b6529141139147f34748e (diff) | |
Coccinelle: pm_runtime: reduce rule applicability
Rule r is only used 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')
| -rw-r--r-- | scripts/coccinelle/api/pm_runtime.cocci | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccinelle/api/pm_runtime.cocci b/scripts/coccinelle/api/pm_runtime.cocci index b7042d074078..89b98a2f7a6f 100644 --- a/scripts/coccinelle/api/pm_runtime.cocci +++ b/scripts/coccinelle/api/pm_runtime.cocci | |||
| @@ -78,7 +78,7 @@ ret = pm_runtime_api(...); | |||
| 78 | // For org and report mode | 78 | // For org and report mode |
| 79 | //---------------------------------------------------------- | 79 | //---------------------------------------------------------- |
| 80 | 80 | ||
| 81 | @r depends on runtime_bad_err_handle exists@ | 81 | @r depends on runtime_bad_err_handle && (org || report) exists@ |
| 82 | position p1, p2; | 82 | position p1, p2; |
| 83 | identifier pm_runtime_api; | 83 | identifier pm_runtime_api; |
| 84 | expression ret; | 84 | expression ret; |
