From 8bf115ed9922e435cd26abd55639b089b285c8e0 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Fri, 11 Jul 2014 17:41:27 +0200 Subject: lib/igt.cocci: Add stanza for for_each_pipe Damien dodged this ... Also run the script while at it. v2: Don't just capture identifiers for pipe, but also expressions. Signed-off-by: Daniel Vetter --- lib/igt.cocci | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/igt.cocci') diff --git a/lib/igt.cocci b/lib/igt.cocci index 3246924f..d399496b 100644 --- a/lib/igt.cocci +++ b/lib/igt.cocci @@ -74,3 +74,13 @@ expression list[n] Ep; @@ -abort(); +igt_fail(1); + +@@ +iterator name for_each_pipe; +igt_display_t *display; +expression pipe; +@@ +- for (pipe = 0; pipe < igt_display_get_n_pipes(display); pipe++) { ++ for_each_pipe (display, pipe) { +... +} -- cgit v1.2.3