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 <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2015-05-14 16:24:01 +01:00
parent 6141aa2dad
commit aa6c63463f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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$";