summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-07-23 14:16:14 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-07-24 11:40:23 +0300
commitc20220dfb4dd429666560dbb041f46e508a32631 (patch)
treefa12346159d6de4bfa1905e3a920480fd1f4238e
parentd818f0c54e5e781ba3fb372aab8f270cf153776c (diff)
tests/kms_atomic_transition: Add explicit curly brackets
To clean up a bit and get rid of compilation warnings. Cc: Mohammed Khajapasha <mohammed.khajapasha@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--tests/kms_atomic_transition.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index f54591e6..a71bbe10 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -788,8 +788,9 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock
if (fencing)
igt_pipe_request_out_fence(&display->pipes[i]);
- } else
+ } else {
igt_plane_set_fb(plane, NULL);
+ }
}
iter_max = 1 << j;
@@ -859,9 +860,10 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock
set_combinations(display, 0, NULL);
igt_display_commit2(display, COMMIT_ATOMIC);
- if (is_i915_device(display->drm_fd))
+ if (is_i915_device(display->drm_fd)) {
for_each_pipe(display, i)
igt_pipe_crc_free(pipe_crcs[i]);
+ }
igt_remove_fb(display->drm_fd, &fbs[1]);
igt_remove_fb(display->drm_fd, &fbs[0]);