From aa6c63463feaba83efb893b4e69e0d334f99afea Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Thu, 14 May 2015 16:24:01 +0100 Subject: igt.cocci: don't use igt_assert_neq to compare pointers igt_assert_neq can only compare integers, not pointers. Signed-off-by: Thomas Wood --- lib/igt.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/igt.cocci') diff --git a/lib/igt.cocci b/lib/igt.cocci index f23b511d..3aee72fb 100644 --- a/lib/igt.cocci +++ b/lib/igt.cocci @@ -193,7 +193,7 @@ expression ptr, size, nmemb, stream; expression list E; @@ -fgets(E); -+igt_assert_neq(fgets(E), NULL); ++igt_assert(fgets(E) != NULL); @@ identifier func =~ "^v?asprintf$"; -- cgit v1.2.3