From e341176d9f6c33f47e6887411644abca7f68be81 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 15 Apr 2020 10:28:36 +0100 Subject: [PATCH] modetest: don't error out of final AtomicCommit The very final drmModeAtommicCommit tears down the existing mode/plane setup. Following it we clean up other misc state laying around. Chances are that it will not fail, but in the extremely unlikely case it does, there's nothing one can do. Signed-off-by: Emil Velikov Reviewed-by: Ezequiel Garcia Tested-by: Ezequiel Garcia --- tests/modetest/modetest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index d792d7e..7ab73a0 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -2078,10 +2078,8 @@ int main(int argc, char **argv) atomic_clear_mode(&dev, pipe_args, count); atomic_clear_planes(&dev, plane_args, plane_count); ret = drmModeAtomicCommit(dev.fd, dev.req, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); - if (ret) { + if (ret) fprintf(stderr, "Atomic Commit failed\n"); - return 1; - } atomic_clear_FB(&dev, plane_args, plane_count); } -- 2.7.4