[PATCH i-g-t 02/33] cocci: Remove drm_open_any() rule
Lyude
lyude at redhat.com
Mon Jun 10 15:02:50 UTC 2019
From: Lyude Paul <lyude at redhat.com>
We haven't had drm_open_any() since 2015, so get rid of it's
corresponding rule.
Signed-off-by: Lyude Paul <lyude at redhat.com>
---
lib/igt.cocci | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/lib/igt.cocci b/lib/igt.cocci
index 476cb566..5476b71b 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -128,20 +128,6 @@ expression b;
+ max(a, b)
)
-// drm_open_any always returns a valid file descriptor
-@@
-expression a;
-@@
-a = drm_open_any();
-(
-- igt_assert(a >= 0);
-|
-- if (a < 0) {
-- ...
-- return ...;
-- }
-)
-
// Use comparison macros instead of raw igt_assert when possible
@@
typedef uint32_t;
--
2.21.0
More information about the Intel-gfx-trybot
mailing list