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>
This commit is contained in:
Thomas Wood
2015-01-13 13:33:57 +00:00
parent 07e9f3edb9
commit 032f30cb38
7 changed files with 17 additions and 21 deletions
-2
View File
@@ -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();