From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF1EEC433EF for ; Fri, 29 Oct 2021 03:20:28 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4E88C60524 for ; Fri, 29 Oct 2021 03:20:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E88C60524 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2291383613; Fri, 29 Oct 2021 05:20:01 +0200 (CEST) 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="DFcAEI+t"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 68ECC835C3; Fri, 29 Oct 2021 05:18:55 +0200 (CEST) Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (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 CC2B7835D0 for ; Fri, 29 Oct 2021 05:18:36 +0200 (CEST) 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@google.com Received: by mail-ot1-x329.google.com with SMTP id v40-20020a056830092800b0055591caa9c6so3409045ott.4 for ; Thu, 28 Oct 2021 20:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=BFbfrs8Kmn82bjrDAegiLFfWFr1rvcF86Wl8AB+4Q/c=; b=DFcAEI+tbSjTe5mkYi9hflgxc6boVO7UopyzJoh4NdfRRi7ivbCuXnfyIArAOtdvKf 1NTR3V92h+jPZ3STY4pXInYfSEj2K4aMv80CG82XL67H7gNlh+dDr338W7u/a89GZoRo oLuWuINuH7APkZ7na17Q6Cqj2GaTci9O5rxU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=BFbfrs8Kmn82bjrDAegiLFfWFr1rvcF86Wl8AB+4Q/c=; b=Of1fLosG0wRQN+pDqfHhxybfcYhN4H8E7Lma/OQfye38TTZjaMsS67P/V2P/E9UcU6 fklqkocqKzeSttmPEWUiAgPHIL9y4uygFSTLA2nswPHizM+KGhBYyuhvnpIJ327J7qO2 tGZBWvrEcX2AoEO6c4ivTwP2+CL3T5lrr1xDiCIr25RQ/S2nOCZ/c1jdUHOg+8YI8abB wJwLl2FW4/F9fFY0UO+o0Wn2IgUgyKNH4b6KXB03dIvpyJbk/DDhOjP6cE6U/ZiBNUcF MTE9aIQGkOhS/aJlQgh0FLL34S9eSnZIpFACyJI34NLApqTbJcbjj1qeqEpsePf69zKV +MOQ== X-Gm-Message-State: AOAM530mNhHh2A79tW5RCpxaiNf0G7zrk75sBxmjzBZj8fYWru8wLpKG BBR9I6hi6fPg1p5vJUlfIxCbkZVingfauZUc9eO047jkIpc= X-Google-Smtp-Source: ABdhPJwpN/HUY/bWLHB9/1vT3fEfb/EIshKaSOyCNsJwS8Ivp4pd4R6NXNk9r5y8Sx1WPTtCc9T9Tz58V0GMpkoftUs= X-Received: by 2002:a9d:37e3:: with SMTP id x90mr135475otb.11.1635477515224; Thu, 28 Oct 2021 20:18:35 -0700 (PDT) MIME-Version: 1.0 References: <20211028032810.18146-1-kabel@kernel.org> <20211028032810.18146-4-kabel@kernel.org> In-Reply-To: <20211028032810.18146-4-kabel@kernel.org> From: Simon Glass Date: Thu, 28 Oct 2021 21:17:39 -0600 Message-ID: Subject: Re: [PATCH 3/5] env: Simplify env_get_default() To: =?UTF-8?B?TWFyZWsgQmVow7pu?= Cc: Stefan Roese , =?UTF-8?Q?Pali_Roh=C3=A1r?= , u-boot@lists.denx.de, =?UTF-8?B?TWFyZWsgQmVow7pu?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On Wed, 27 Oct 2021 at 21:28, Marek Beh=C3=BAn wrote: > > From: Marek Beh=C3=BAn > > Instead of pretending that we don't have environment to force searching > default environment in env_get_default(), get the data from the > default_environment[] buffer directly. > > Signed-off-by: Marek Beh=C3=BAn > --- > env/common.c | 45 ++++++++++++++++++++++++--------------------- > 1 file changed, 24 insertions(+), 21 deletions(-) Reviewed-by: Simon Glass