Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 650ACC352A1 for ; Wed, 7 Dec 2022 08:55:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45EA485596; Wed, 7 Dec 2022 09:54:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="V4kw55hZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B48848558F; Wed, 7 Dec 2022 09:54:17 +0100 (CET) Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 274F38531C for ; Wed, 7 Dec 2022 09:54:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-pf1-x429.google.com with SMTP id 124so17000013pfy.0 for ; Wed, 07 Dec 2022 00:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vww8FQLhgaGz5t7EMzYfm5d1oCiIO4dIXDRttSWyrRw=; b=V4kw55hZ0X8yZCpsMgoaoDYK3yY6X4Cglca8I0dCjg7rF/MpRU2jb096CtFM+SS6Wj EkLSF1x1UOfbpMow5F89K3+EZ6EhoVmHSf2sqC9PwZ2+BapWdG7slGk0phVpXzgBd9Q1 J94fygMJy3TPbnym6kGMBmgRKvWGhBo26VIuU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vww8FQLhgaGz5t7EMzYfm5d1oCiIO4dIXDRttSWyrRw=; b=5lWcNlJDyCcw2b0/D42zNVWOUfB5l/DSX9Fh7ab8nRoF8xbE3L3epR28y+OD97NxY0 LjPg4QDHr9eKsOJ+gQ0DJrYUTa73epv/CQuB6i+vBCUQr7lMqiV6URURaeOYmMBD+4Qj hkiocULVQpLKt3qZCtYvhADR33YCxqfLsamyH46M1PX4A0089WgLNbLQhKK2hsKzz6oS 8wGaGfpbydk7HKgVQXW7oPnpNIi/FWJbyzHmzL9stXK7ksP9y5sj9Cl2mHQoNcIvrVGU J6A+ES883jJQHolm7vPKCmVlURZ58PPJaGx6uFg9gcEIe7tGzFfpu0Ogmc8icCVZ9XJX MAPw== X-Gm-Message-State: ANoB5pksz8p99+oNil+9CcwpPoXzOfNs2Fz/4jPvM2hNd6hzCGtRz/Rb eq6X9s0mLRY5ETThRltnAiufYQMn+CpGSpvD X-Google-Smtp-Source: AA0mqf5BQHWjZh54GrRDFUmsRNAtqjio8Zav0OpipIGMsqcp9K5YZzgi+Q7+Ip7mARc6TBhblUJqzg== X-Received: by 2002:a63:4081:0:b0:46f:e657:7d25 with SMTP id n123-20020a634081000000b0046fe6577d25mr79724541pga.347.1670403253240; Wed, 07 Dec 2022 00:54:13 -0800 (PST) Received: from localhost.localdomain ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id l16-20020a170903121000b0018157b415dbsm14145514plh.63.2022.12.07.00.54.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 00:54:12 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: U-Boot Custodians , Simon Glass , Heinrich Schuchardt , Michal Suchanek , Stefan Roese Subject: [PATCH 08/71] test: Drop duplicate restore of DM state Date: Wed, 7 Dec 2022 21:50:34 +1300 Message-Id: <20221207085137.445249-9-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.rc0.267.gcb52ba06e7-goog In-Reply-To: <20221207085137.445249-1-sjg@chromium.org> References: <20221207085137.445249-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 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.rc0.267.gcb52ba06e7-goog