From 90254c14f4e68bec9d4a114ddf039075f3c1a30c Mon Sep 17 00:00:00 2001 From: Melissa Wen Date: Mon, 6 Jul 2020 12:50:59 -0300 Subject: lib/igt_fb: remove extra parameters from igt_put_cairo_ctx The function igt_put_cairo_ctx currently requires three parameters, but only one of them is used in it. This patch removes the useless parameters, making the code more readable and cohesive. It also applies the change to all occurrences of the function in the code. Signed-off-by: Melissa Wen Reviewed-by: Arkadiusz Hiler --- tests/kms_mmap_write_crc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/kms_mmap_write_crc.c') diff --git a/tests/kms_mmap_write_crc.c b/tests/kms_mmap_write_crc.c index 56e0c4d7..46013808 100644 --- a/tests/kms_mmap_write_crc.c +++ b/tests/kms_mmap_write_crc.c @@ -92,7 +92,7 @@ static void test(data_t *data) cr = igt_get_cairo_ctx(data->drm_fd, fb); igt_paint_test_pattern(cr, fb->width, fb->height); - igt_put_cairo_ctx(data->drm_fd, fb, cr); + igt_put_cairo_ctx(cr); /* flip to it to make it UC/WC and fully flushed */ igt_plane_set_fb(data->primary, fb); @@ -135,7 +135,7 @@ static void test(data_t *data) * fully flushed */ cr = igt_get_cairo_ctx(data->drm_fd, fb); igt_paint_test_pattern(cr, fb->width, fb->height); - igt_put_cairo_ctx(data->drm_fd, fb, cr); + igt_put_cairo_ctx(cr); igt_plane_set_fb(data->primary, fb); igt_display_commit(display); -- cgit v1.2.3