diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-02 11:00:50 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-12 13:13:01 +0100 |
commit | aa5068c58947f31252cad69d80686e40bbce29db (patch) | |
tree | 557e4984186b3b5abc17b8d1980190e1b4c9c233 /tests/kms_plane_scaling.c | |
parent | e62de1c7c4ecde0bea5256faec0e8793810f9410 (diff) |
tests: Always call igt_remove_fb without checking.
This cleans up the tests slightly.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Tested-by: Vidya Srinivas <vidya.srinivas@intel.com>
Diffstat (limited to 'tests/kms_plane_scaling.c')
-rw-r--r-- | tests/kms_plane_scaling.c | 7 |
1 files changed, 1 insertions, 6 deletions
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) |