mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +00:00
lib/igt_kms: Simplify return value of kmstest_get_connector_config
A plain bool is enough. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+2
-4
@@ -198,11 +198,9 @@ static int run_test(const char *test_name, enum test_flags flags)
|
||||
connector_id = resources->connectors[i];
|
||||
for (j = 0; j < resources->count_crtcs; j++) {
|
||||
struct kmstest_connector_config cconf;
|
||||
int ret;
|
||||
|
||||
ret = kmstest_get_connector_config(drm_fd, connector_id,
|
||||
1 << j, &cconf);
|
||||
if (ret < 0)
|
||||
if (!kmstest_get_connector_config(drm_fd, connector_id,
|
||||
1 << j, &cconf))
|
||||
continue;
|
||||
|
||||
test_connector(test_name, &cconf, flags);
|
||||
|
||||
Reference in New Issue
Block a user