mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 22:32:57 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user