[04/33] cocci: Update open-coded do_ioctl rule

Submitted by Lyude Paul on June 7, 2019, 11:07 p.m.

Details

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

Not browsing as part of any series.

Commit Message

Lyude Paul June 7, 2019, 11:07 p.m.
From: Lyude Paul <lyude@redhat.com>

Since it's expected that we would be using igt_assert_eq() for this, not
plain igt_assert()

Signed-off-by: Lyude Paul <lyude@redhat.com>
---
 lib/igt.cocci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/lib/igt.cocci b/lib/igt.cocci
index 20ae3cca..8de871ca 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -208,7 +208,7 @@  expression a, b, c, e;
 -do_or_die(drmIoctl(a, b, c));
 +do_ioctl(a, b, c);
 |
--igt_assert(drmIoctl(a, b, c) == 0);
+-igt_assert_eq(drmIoctl(a, b, c), 0);
 +do_ioctl(a, b, c);
 |
 -igt_assert(drmIoctl(a, b, c) == -1 && errno == e);