mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-18 03:43:03 +00:00
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 <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -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) {
|
||||
...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user