[PATCH v3 08/70] test: Drop duplicate restore of DM state

Simon Glass sjg at chromium.org
Tue Jan 17 18:47:18 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.246.g2a6d74b583-goog



More information about the U-Boot mailing list