summaryrefslogtreecommitdiff
path: root/tests/kms_psr_sink_crc.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-08-12 11:57:32 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-08-12 19:36:53 +0200
commit1cad834261e5792f19406faf111235737da15191 (patch)
tree5a4c4f84c0daa95d8e5a57f2e5530f172bf1b9ba /tests/kms_psr_sink_crc.c
parent81dfcaba88f2a6f04830b7da2fd7d79cf6120a40 (diff)
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>
Diffstat (limited to 'tests/kms_psr_sink_crc.c')
-rw-r--r--tests/kms_psr_sink_crc.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index 324f9b40..8e8c9086 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -443,13 +443,10 @@ static void test_crc(data_t *data)
static bool prepare_crtc(data_t *data, uint32_t connector_id)
{
- int ret;
-
- ret = kmstest_get_connector_config(data->drm_fd,
- connector_id,
- 1 << data->crtc_idx,
- &data->config);
- if (ret)
+ if (!kmstest_get_connector_config(data->drm_fd,
+ connector_id,
+ 1 << data->crtc_idx,
+ &data->config))
return false;
data->fb_id[0] = create_fb(data,