From aa5068c58947f31252cad69d80686e40bbce29db Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 2 Feb 2018 11:00:50 +0100 Subject: tests: Always call igt_remove_fb without checking. This cleans up the tests slightly. Signed-off-by: Maarten Lankhorst Reviewed-by: Mika Kahola Tested-by: Vidya Srinivas --- tests/kms_plane_scaling.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tests/kms_plane_scaling.c') diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index 208f9262..3171331c 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -62,13 +62,8 @@ static void cleanup_fbs(data_t *data) { int i; - for (i = 0; i < ARRAY_SIZE(data->fb); i++) { - if (!data->fb[i].fb_id) - continue; - + for (i = 0; i < ARRAY_SIZE(data->fb); i++) igt_remove_fb(data->drm_fd, &data->fb[i]); - data->fb[i].fb_id = 0; - } } static void cleanup_crtc(data_t *data) -- cgit v1.2.3