[02/33] cocci: Remove drm_open_any() rule

Submitted by Lyude Paul on June 10, 2019, 3:02 p.m.

Details

Message ID 20190610150321.512-2-lyude@redhat.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in IGT - Trybot

Not browsing as part of any series.

Commit Message

Lyude Paul June 10, 2019, 3:02 p.m.
From: Lyude Paul <lyude@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@redhat.com>
---
 lib/igt.cocci | 14 --------------
 1 file changed, 14 deletions(-)

Patch hide | download patch | download mbox

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;