From: Simon Glass Date: Tue, 17 Jan 2023 17:47:18 +0000 (-0700) Subject: test: Drop duplicate restore of DM state X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=3f23ce2b6c58a489b3377e1fc1449ca293892546;p=u-boot.git 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 --- 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; }