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 3FB2DC54EBC for ; Sun, 8 Jan 2023 02:54:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5046F8562B; Sun, 8 Jan 2023 03:52:06 +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="FuKBvfL8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B5E3285696; Sun, 8 Jan 2023 03:51:39 +0100 (CET) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (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 DCA85855F9 for ; Sun, 8 Jan 2023 03:51:05 +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-il1-x12b.google.com with SMTP id u8so3271169ilq.13 for ; Sat, 07 Jan 2023 18:51:05 -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=bOVE28epXmGpEltd4UhBOjhCiUF3hkCdB2bUjPEoe7M=; b=FuKBvfL8bxO6dj9D8pMW2Ytwehr42vvQXtx577qpTdK42SRSv/UlAH/TXA8OziWbXM Sp0qgoNGoD+wi674yFwmR2SWhcIJEx7tssjcQVHwbyEF3Xrq/E7ge1XQMnRB3+qi/a4q 84tjBb59Z+ZD6SkQ+3tcjR1Kaz7TPUyhU3q98= 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=bOVE28epXmGpEltd4UhBOjhCiUF3hkCdB2bUjPEoe7M=; b=Fj1z+p6q4ve0z8SgARXCxWE7A3D9fie4Mwm3ZAzMoEtg3iVkWsHGVhEGOqH3lkXALs qi0CfuTqxngElb61HRmYbfPROIunJotzrtfQH2aO2v7BWtOsQqzSHPehEAj7l0PjrzKz BRMeSttX8Aw/NClQ36hsViA0cypwkyCPy4CoVgdpMBOcSvPA2/rIR4SEWIt0KAyMqBHR JtW7Ck4Kqe6pbOHsJC2y7gcyO86uSdENhUZU0ojJQGWZLGR/ucz9MQdzmrvlEyMsoqE9 Qon+f8MrQiNlFHSdSdAcquIy1uXCV1yktFcbcslqdLHaH6CsC19JLTz6fkIAmGrCu0GW dzAg== X-Gm-Message-State: AFqh2koDZ0quM9JoZGKhqvJaH/UtvVFiej5+5tXKT/6qZ2slcuG7e/t3 yuUlonl86yewRQ+XPDeBHmJkk+chJ+ZaT1WU X-Google-Smtp-Source: AMrXdXu+IazoIEEryKRFB7hwbhnyHW6zhr4Z1977T6CzTnq7EqvUGW/wNNAHSqctm7YYHIhe/hVTKQ== X-Received: by 2002:a92:d20f:0:b0:303:27a3:8666 with SMTP id y15-20020a92d20f000000b0030327a38666mr40664314ily.28.1673146264378; Sat, 07 Jan 2023 18:51:04 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-71-56-217-229.hsd1.co.comcast.net. [71.56.217.229]) by smtp.gmail.com with ESMTPSA id c17-20020a92bd11000000b00302a00aaefasm1622174ile.26.2023.01.07.18.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 18:51:04 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: U-Boot Custodians , Simon Glass Subject: [PATCH v2 08/71] test: Drop duplicate restore of DM state Date: Sat, 7 Jan 2023 19:49:44 -0700 Message-Id: <20230108025047.522240-9-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230108025047.522240-1-sjg@chromium.org> References: <20230108025047.522240-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 --- (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