summaryrefslogtreecommitdiff
path: root/tests/gem_flink_race.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-01-13 13:33:57 +0000
committerThomas Wood <thomas.wood@intel.com>2015-01-15 12:23:04 +0000
commit032f30cb38bb03562ee7fde19cd278b1d8ac31a9 (patch)
treeea6fea5eff9583a072c2f8174c00f57ab5cf1881 /tests/gem_flink_race.c
parent07e9f3edb9dd8e99c2511b6b8c4cf750a5dbe536 (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/gem_flink_race.c')
-rw-r--r--tests/gem_flink_race.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/gem_flink_race.c b/tests/gem_flink_race.c
index c2a5d81c..26f32585 100644
--- a/tests/gem_flink_race.c
+++ b/tests/gem_flink_race.c
@@ -103,7 +103,6 @@ static void test_flink_name(void)
threads = calloc(num_threads, sizeof(pthread_t));
fd = drm_open_any();
- igt_assert(fd >= 0);
for (i = 0; i < num_threads; i++) {
r = pthread_create(&threads[i], NULL,
@@ -173,7 +172,6 @@ static void test_flink_close(void)
threads = calloc(num_threads, sizeof(pthread_t));
fd = drm_open_any();
- igt_assert(fd >= 0);
for (i = 0; i < num_threads; i++) {
r = pthread_create(&threads[i], NULL,