diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-01-13 13:33:57 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-01-15 12:23:04 +0000 |
commit | 032f30cb38bb03562ee7fde19cd278b1d8ac31a9 (patch) | |
tree | ea6fea5eff9583a072c2f8174c00f57ab5cf1881 /tests/prime_self_import.c | |
parent | 07e9f3edb9dd8e99c2511b6b8c4cf750a5dbe536 (diff) |
lib: remove unnecessary checks on the drm_open_any return value
drm_open_any always returns a valid file descriptor, so there is no need
to check the return value.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/prime_self_import.c')
-rw-r--r-- | tests/prime_self_import.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c index 9cb07806..1eb5a04a 100644 --- a/tests/prime_self_import.c +++ b/tests/prime_self_import.c @@ -269,7 +269,6 @@ static void test_reimport_close_race(void) threads = calloc(num_threads, sizeof(pthread_t)); fds[0] = drm_open_any(); - igt_assert(fds[0] >= 0); handle = gem_create(fds[0], BO_SIZE); @@ -349,7 +348,6 @@ static void test_export_close_race(void) threads = calloc(num_threads, sizeof(pthread_t)); fd = drm_open_any(); - igt_assert(fd >= 0); obj_count = get_object_count(); |