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 /lib/igt.cocci | |
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 'lib/igt.cocci')
-rw-r--r-- | lib/igt.cocci | 2 |
1 files changed, 1 insertions, 1 deletions
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$"; |