Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79ff2b3d authored by Julia Lawall's avatar Julia Lawall Committed by Michal Marek
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent c7eaa887
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ ret = pm_runtime_api(...);
//  For org and report mode
//----------------------------------------------------------

@r depends on runtime_bad_err_handle exists@
@r depends on runtime_bad_err_handle && (org || report) exists@
position p1, p2;
identifier pm_runtime_api;
expression ret;