From 3f23ce2b6c58a489b3377e1fc1449ca293892546 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 17 Jan 2023 10:47:18 -0700 Subject: [PATCH] test: Drop duplicate restore of DM state This code is present twice. Fix it so that it is only executed once. Signed-off-by: Simon Glass --- test/test-main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/test-main.c b/test/test-main.c index 5931e94a91..9ab090b7b3 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -635,9 +635,5 @@ int ut_run_list(const char *category, const char *prefix, else printf("Failures: %d\n", uts.fail_count); - /* Best efforts only...ignore errors */ - if (has_dm_tests) - dm_test_restore(uts.of_root); - return ret; } -- 2.39.5