[PATCH v2 08/71] test: Drop duplicate restore of DM state

Simon Glass sjg at chromium.org
Sun Jan 8 03:49:44 CET 2023


This code is present twice. Fix it so that it is only executed once.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 test/test-main.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/test/test-main.c b/test/test-main.c
index 5931e94a915..9ab090b7b33 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.0.314.g84b9a713c41-goog



More information about the U-Boot-Custodians mailing list