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/gem_flink_race.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/gem_flink_race.c')
-rw-r--r-- | tests/gem_flink_race.c | 2 |
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, |