mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 09:56:22 +00:00
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:
parent
6141aa2dad
commit
aa6c63463f
@ -193,7 +193,7 @@ expression ptr, size, nmemb, stream;
|
|||||||
expression list E;
|
expression list E;
|
||||||
@@
|
@@
|
||||||
-fgets(E);
|
-fgets(E);
|
||||||
+igt_assert_neq(fgets(E), NULL);
|
+igt_assert(fgets(E) != NULL);
|
||||||
|
|
||||||
@@
|
@@
|
||||||
identifier func =~ "^v?asprintf$";
|
identifier func =~ "^v?asprintf$";
|
||||||
|
@ -61,7 +61,7 @@ static int find_and_open_devices(void)
|
|||||||
if (!fl)
|
if (!fl)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
igt_assert_neq(fgets(vendor_id, 8, fl), NULL);
|
igt_assert(fgets(vendor_id, 8, fl) != NULL);
|
||||||
fclose(fl);
|
fclose(fl);
|
||||||
|
|
||||||
venid = strtoul(vendor_id, NULL, 16);
|
venid = strtoul(vendor_id, NULL, 16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user