summaryrefslogtreecommitdiff
path: root/tests/kms_setmode.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-08-12 11:56:41 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-08-12 19:36:53 +0200
commit81dfcaba88f2a6f04830b7da2fd7d79cf6120a40 (patch)
tree22d2429b7b960ca4756578cc9268128b2fd033f4 /tests/kms_setmode.c
parent3b39bfff60967c13dbadae8ff051819d78c6bd2f (diff)
lib/igt_kms: Simplify return value of kmstest_get_connector_default_mode
A plain bool is good enough, no need for fancy negative error values. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_setmode.c')
-rw-r--r--tests/kms_setmode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
index f4197854..59e2434c 100644
--- a/tests/kms_setmode.c
+++ b/tests/kms_setmode.c
@@ -517,8 +517,8 @@ static int get_one_connector(drmModeRes *resources, int connector_id,
}
if (cconf->connected) {
- if (kmstest_get_connector_default_mode(drm_fd, connector,
- &mode) < 0)
+ if (!kmstest_get_connector_default_mode(drm_fd, connector,
+ &mode))
mode = mode_640_480;
} else {
mode = mode_640_480;