diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-03-25 16:42:57 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-03-26 15:50:59 +0000 |
commit | 47f6b1305cc3752f318a555b932e194e1500c1d8 (patch) | |
tree | 18660c1faf9eadd6ef2bcbe9730eb1fa6c5ced7f /tests/prime_udl.c | |
parent | 0c4dd28d2d3b39216f9d041119ebf34cc44b7df7 (diff) |
igt.cocci: check the return values of various functions
Add rules to fix unused-result warnings when compiling with
_FORTIFY_SOURCE defined and apply them to the library and tests.
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
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 62b381a3..d03aee06 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; - fgets(vendor_id, 8, fl); + igt_assert_neq(fgets(vendor_id, 8, fl), NULL); fclose(fl); venid = strtoul(vendor_id, NULL, 16); |