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_flip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/kms_flip.c') diff --git a/tests/kms_flip.c b/tests/kms_flip.c index b43e7712..3d6fe948 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1332,8 +1332,7 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, igt_info("\n%s: PASSED\n\n", test_name); out: - if (o->fb_ids[2]) - igt_remove_fb(drm_fd, &o->fb_info[2]); + igt_remove_fb(drm_fd, &o->fb_info[2]); igt_remove_fb(drm_fd, &o->fb_info[1]); igt_remove_fb(drm_fd, &o->fb_info[0]); -- cgit v1.2.3