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 6BFB2C433EF for ; Tue, 19 Oct 2021 14:38:36 +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 DD806610E7 for ; Tue, 19 Oct 2021 14:38:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DD806610E7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nic.cz 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 4480882FC5; Tue, 19 Oct 2021 16:38:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz 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; secure) header.d=nic.cz header.i=@nic.cz header.b="nX2Equ7l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 57C7882FC5; Tue, 19 Oct 2021 16:38:32 +0200 (CEST) Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2307F82006 for ; Tue, 19 Oct 2021 16:38:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from thinkpad (unknown [172.20.6.87]) by mail.nic.cz (Postfix) with ESMTPSA id BDCF01408B5; Tue, 19 Oct 2021 16:38:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1634654308; bh=LzxBU0aqXik9qLFHV44e3/bME+mJ2jXFuuAtyEL+NuU=; h=Date:From:To; b=nX2Equ7ld6l6D8mkiOZS8bccDykrX8QQS9zIDHa4S7k/1Twlnpwt5zJocyB9oVrEG OXbECqr0iH8Fd6/vrzbB16OezZivxi34tYiaE90fTFvk3m9L+qBvzR4AGQ/BolJ/OP UCsgByiNB4jgZIb+xZ1tD/EXsf20itPcb/A58wDo= Date: Tue, 19 Oct 2021 16:38:28 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Simon Glass Cc: U-Boot Mailing List , Rasmus Villemoes , Heinrich Schuchardt , Wolfgang Denk , Tom Rini Subject: Re: [PATCH v8 8/8] bootm: Tidy up use of autostart env var Message-ID: <20211019163828.16f0b383@thinkpad> In-Reply-To: <20211018181322.1181847-7-sjg@chromium.org> References: <20211018181322.1181847-1-sjg@chromium.org> <20211018181322.1181847-7-sjg@chromium.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Mon, 18 Oct 2021 12:13:22 -0600 Simon Glass wrote: > +bool env_get_autostart(void) > +{ > + const char *val = env_get("autostart"); > + > + return val && !strcmp(val, "yes"); > +} Why not use env_get_yesno() ?