]> git.baikalelectronics.ru Git - uboot.git/commitdiff
test: Drop duplicate restore of DM state
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:18 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
This code is present twice. Fix it so that it is only executed once.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/test-main.c

index 5931e94a915bd4dcafbe42496c1092c753544d35..9ab090b7b33a9abafe1bf7915cfe5ae87c6479d3 100644 (file)
@@ -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;
 }