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:
Daniel Vetter
2014-08-12 11:57:32 +02:00
parent 81dfcaba88
commit 1cad834261
7 changed files with 29 additions and 36 deletions
+2 -4
View File
@@ -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);