diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-05-14 16:24:01 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-05-14 17:01:57 +0100 |
commit | aa6c63463feaba83efb893b4e69e0d334f99afea (patch) | |
tree | b14bcc96553b8c37b424ab4cbc51f9c68278f3e6 /tests/prime_udl.c | |
parent | 6141aa2dad814ba8e1254c8e8213f1ba3ae6835a (diff) |
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>
Diffstat (limited to 'tests/prime_udl.c')
-rw-r--r-- | tests/prime_udl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/prime_udl.c b/tests/prime_udl.c index d03aee06..b742f1cd 100644 --- a/tests/prime_udl.c +++ b/tests/prime_udl.c @@ -61,7 +61,7 @@ static int find_and_open_devices(void) if (!fl) break; - igt_assert_neq(fgets(vendor_id, 8, fl), NULL); + igt_assert(fgets(vendor_id, 8, fl) != NULL); fclose(fl); venid = strtoul(vendor_id, NULL, 16); |