[Intel-gfx] [PATCH 5/8] lib/igt.cocci: Also add rule to use igt_warn_on_f

Daniel Vetter daniel.vetter at ffwll.ch
Fri Jun 13 18:29:58 CEST 2014


Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 lib/igt.cocci | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/igt.cocci b/lib/igt.cocci
index dcb7bbc94dd0..e944c7d12f4f 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -22,6 +22,14 @@ expression list[n] Ep;
 - igt_skip(Ep);
 - }
 + igt_skip_on_f(Ec, Ep);
+@@
+expression Ec;
+expression list[n] Ep;
+@@
+- if (Ec) {
+- igt_warn(Ep);
+- }
++ igt_warn_on_f(Ec, Ep);
 
 // Enforce use of logging functions
 @@
-- 
2.0.0




More information about the Intel-gfx mailing list