Message ID | 20220829173054.83323-1-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBDD6BWV65QPBBC7PWOMAMGQE25YOSGA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33d; helo=mail-wm1-x33d.google.com; envelope-from=swupdate+bncbdd6bwv65qpbbc7pwomamgqe25yosga@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=cdyYimDs; dkim-atps=neutral Received: from mail-wm1-x33d.google.com (mail-wm1-x33d.google.com [IPv6:2a00:1450:4864:20::33d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MGcrb3rWmz1yhC for <incoming@patchwork.ozlabs.org>; Tue, 30 Aug 2022 03:29:51 +1000 (AEST) Received: by mail-wm1-x33d.google.com with SMTP id 203-20020a1c02d4000000b003a5f5bce876sf8713437wmc.2 for <incoming@patchwork.ozlabs.org>; Mon, 29 Aug 2022 10:29:51 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1661794188; cv=pass; d=google.com; s=arc-20160816; b=gr34EEYKD3GJr/LRmWp/8mi6ZoMOPDBz4yYZV2n9BOBxNgt1mbaOpi1gyrHApVUxJF y6myVB1gxuknk/qY9NvGRSNkfpRj9BvROX2sLusfqtXv8eXFnl59fiKprMIWHspPeuBz XgGW9sUdHHUcohn0VtAZ28zJe/G0B+sYjxczLu3uS+H+K2NS51SJDZzDEm5kJ+HvvYqz kRuQo3/uHnvPPyGIOGzVLUAkuX1clF6gtiQNrT28g1vcui6+oX5jzA+1r31dnuKI9f07 nVCMZebmIDoVcanKmjwQiKU1VZUB5SYz+blbEiaWAzNOLjEMtSZ5bJxRJ5qsb/yQqQM3 u/Jg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=a4WTOCONeALqTT7aW6JfihJg2JNAG3VZ1nMd4AU/fag=; b=E2mPU5Y30uhTKL68d9/GOeiXdSLDfUySKoU+LGsDdDPjcmda27OS4r/WzEE2ZU7AY0 +a1Sf8IfOuzZCWQjDmnFfs0BdxNYSjBO6LDqfWt57oxLYCTbJ5kmpR4jkJv/VMgQEweA KBAB5ZsWCFHcg82ea7/uaH+oleOBD6NEVClle1VA2Jcv4RBhguLbgp2T06S9ZNOEzZbJ GiDw5XSeT3FBX7xnb35I0w6uwYYRMyc5T/po6kHSmPwhdnrYfqnS0HCvtC5vf63XXxfJ SO7gTx1zGvtJ+nfiibSq1h2/PgIHzw8bIPlQYV3oXllxEzGgqzR9ggIo5iCwp16yzaUa 7E+Q== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=JQoNI8by; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of christian.storm@siemens.com designates 40.107.5.74 as permitted sender) smtp.mailfrom=christian.storm@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc; bh=a4WTOCONeALqTT7aW6JfihJg2JNAG3VZ1nMd4AU/fag=; b=cdyYimDscxo0PSfPqJwR5RVNJEANM3EsfdJO6ZgXaIrVYZtEMM/g6GcZythGeaakqy G1Fz9/KXmKERIwjgx7WY8KzB4Zcefpqa1Z2CnW34ZcVNB7NQgZWlod+fcVgkArsp9IH5 Qdzc1rJ+iSwJzUG92AZ/C6oGdCUgCfQXrEclzC9c7rG55sDME+tPZ7cb0MTjZa/SMQOM 1edYa9z0SetRY+ZsSn81voCrmr4+WrfqoS9DNxyotYaQtgoXKDSrXi8tZLVTZPD4R8Zg u676+XspiZ0kgPAs4gz1i8lG23vjQns36YjAsxJN7GoHVGmAnv6vkXSPQDVevD81fQHo bwlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc; bh=a4WTOCONeALqTT7aW6JfihJg2JNAG3VZ1nMd4AU/fag=; b=vSR8VgglfvHI0Z7NQFT57j/BvFnxymDnkT9yede9Ev20a4r2fMzp6VCwuaENwGh5Bb MRloKumKiSEeHKzoXyf+MAuaQ2sLOgWGoHlqEorEp+2+1UPj8bXWI3XClyvLuWgKkXcY Mb6V8L6r7YDkJq6V8ISb3W2NBfGCtjAUIDjUrOO9FWmcqFIKV5IXdjOEDgnkpVNPuQOG 4D8e3kTi3ya65LvHIRIQ3cqKkI1rPtdm7+MJYiYPiVFOJVCBf39RNHlLkqJ7c1t6MrFE dI92nPZopF3rOgVPwnTqBxA3SjmqEMX+lXX4sbY3elDwbf3yw7DvHJP3Lm7QwX4BDvOK HQPQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: ACgBeo03dG0Gv7XN4NYVj5px6gfRIa84ft0OUF+LNKTmWoNoTvhgaVsZ oLHvEBfZFLnLPw6yUUICi4Y= X-Google-Smtp-Source: AA6agR7fDbX7MpBGzBW+P+yaTIYDHiAt9GM+uSREWYYY7SLaAxhWYOXB97o/ielsJrAqNlAU5bs2pw== X-Received: by 2002:a05:600c:3c9b:b0:3a6:58b2:b80 with SMTP id bg27-20020a05600c3c9b00b003a658b20b80mr7468613wmb.132.1661794188369; Mon, 29 Aug 2022 10:29:48 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a5d:4848:0:b0:225:58db:7886 with SMTP id n8-20020a5d4848000000b0022558db7886ls2779176wrs.1.-pod-prod-gmail; Mon, 29 Aug 2022 10:29:47 -0700 (PDT) X-Received: by 2002:adf:d0c1:0:b0:226:db47:da1c with SMTP id z1-20020adfd0c1000000b00226db47da1cmr3484022wrh.391.1661794187107; Mon, 29 Aug 2022 10:29:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661794187; cv=pass; d=google.com; s=arc-20160816; b=ooPwN2jnHsjkJDJahayGm//dxpDKTkSPUtqcAxDzsKnztxTuEZDnUQdz1Vojt48xMW 8i3jJ43psiQb1h8JcsLL7TqhnKGNqTMMay7MWN+AWS4Yf/k+F0oFyEb7+dPopQZAEE5w T1N0+K2RgHBG0TKgMdSClqWTwdiwsPQ9vU7gLcEMmaBQzLFZhbEf1hzNtBB5F8XSbXHE KKzg9rQkiWl9lbuvq15JveS+3FZRubVse/zIu8yzE0NfWB6PuF0tH4558bqyZ52lmte7 iotNX2Eh9S5t9RC/6byVrgkxW3wJooHpu3vnv0RSgOsjXVx6Wx0/ajDYtf0BVElBJS3O kriw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=JrsYjU4hJkD4rvsEqZPyR6b/byAEIwOeSoY01LHvMEU=; b=T6SK8bYdusK8CLY+e1IsydyjT0QB8EneOhUUcMRz9WBFJqi5hHJhiwHjbvG47RvzwJ +QhPiJjX+FsWd85eY3aQof08fVneWnybkWTRy5Mw4ITAfjXoNlAzJITJxJibufDVphJ2 NtUNPm5M7KnIjU1Gox+WsiNYzdDlQy0RFLn774JsR9avD7GddJ61EdcmwWEPTjGoG0SO pNBH1ke+mRTg1cikksxSEsaCro2oR6SWexF30/Ktku25pKBYZrox+X4koVY50nPmKFY9 vjKETPcdIQe7vklK+MhVJXU/cPRiwg9pyyarCVcWUBOsZVmLfp2abk2QWnJOeX4m5ySz P+3A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=JQoNI8by; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of christian.storm@siemens.com designates 40.107.5.74 as permitted sender) smtp.mailfrom=christian.storm@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50074.outbound.protection.outlook.com. [40.107.5.74]) by gmr-mx.google.com with ESMTPS id n185-20020a1c27c2000000b003a49e4e7e14si955214wmn.0.2022.08.29.10.29.47 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Aug 2022 10:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 40.107.5.74 as permitted sender) client-ip=40.107.5.74; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N58zzeDTaNAVIPRwrfgpzvYEhpRfJ+3k78kFDD1O5pvw2Oyzb8Yh5JI+p6Z5nt3/Uv8Ht/RLF2/ATq/wypKyQiYRppci6NhLvm680XlAKsEITNK52UU3Bh3hYjWDfbzCN6y8yL0p2MIrpWcXHl3jal+DBSkyyzTt+B53po4JA4g44UDrEsFJfvm1f81YZQbawgMRGYpBn6phA9GhBtH+4iPG4yRmTxV855sxyRWBEMi/Tbl/Jd2d8lbO3CQOmc+Acv9o3dPuigBX/DIZSM3u/RPqkKLaKZM1kMayWNa4oCiQNrQYvHZ1wVa1esy7csOQpxWVeejRuifbLCwVHN6Udg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JrsYjU4hJkD4rvsEqZPyR6b/byAEIwOeSoY01LHvMEU=; b=R9X0rCUOalem5pOeTlX6LWEP/R+rA1mdOFPXSTC7N0puor6vwaoz0OuWyaT/nexVqsZV94eZbIGycBuEsg65J4VLRk3UkI18h6jR+ihDAIjg0ym7M1qTBDwvXPrOU+2bpPYyjTj3OuF9z/N1UTqBRH3cDodf3m9WdB1Yu03FcMATn1EZATZAcKynwyKB7iDUM0zJ6ETZBgAGGZ2ttRruDGw7s1EVj/xKmqsEq6bFI/u5i+IasR4lzkpktktrrGX8CcOgLU+GVaHc4aUFV2RYfvob/YGcN88ULnDWz3e3Bum4P4BUKY6KMGu2LvSpR6j5M7o6Kyd7Uv4dYHxWTJqMtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.75) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from DB8PR06CA0017.eurprd06.prod.outlook.com (2603:10a6:10:100::30) by VE1PR10MB3854.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:164::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Mon, 29 Aug 2022 17:29:45 +0000 Received: from DB5EUR01FT103.eop-EUR01.prod.protection.outlook.com (2603:10a6:10:100:cafe::2a) by DB8PR06CA0017.outlook.office365.com (2603:10a6:10:100::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15 via Frontend Transport; Mon, 29 Aug 2022 17:29:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.75) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.75 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.75; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.75) by DB5EUR01FT103.mail.protection.outlook.com (10.152.5.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15 via Frontend Transport; Mon, 29 Aug 2022 17:29:45 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC8VRA.ad011.siemens.net (194.138.21.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.12; Mon, 29 Aug 2022 19:29:44 +0200 Received: from cosmos.fritz.box.net (139.22.41.254) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Mon, 29 Aug 2022 19:29:44 +0200 From: Christian Storm <christian.storm@siemens.com> To: <swupdate@googlegroups.com> CC: Christian Storm <christian.storm@siemens.com> Subject: [swupdate] [PATCH] bootloader: EBG: Short-circuit bootloader_env_set() Date: Mon, 29 Aug 2022 19:30:54 +0200 Message-ID: <20220829173054.83323-1-christian.storm@siemens.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [139.22.41.254] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 490a8589-edf9-4d13-17a0-08da89e410c3 X-MS-TrafficTypeDiagnostic: VE1PR10MB3854:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ic2KC4XKlTBVp13pMeSGCN85WVCePO9eUEwDtiISxjfcgqurUp3Cbc/xAGK6Eo14FNq5SgCBrKZKdphNJp5RHR3vc991GNxpgDMXSHfvvPYdoq7Ps1LrnavZiwY+kcAqmq9BMz2Gf7a8+mIJG8T8793QRMEgCN8ihM0L6xv7dnhhXz1/u4d22yhc324T2FPYTFvMp6aOuan5a6i3NwFFZ5fdJUCqkR3YrEmu8wPcvtCBXOCeg8gyir50pCB6NXotM9w259rqyschXQ6YeNZTg1Gz+gjbNbePEbc6B7N2zgENaub/3HHBwjLwUM1gk8gFF8+sqcy32BSIl4wF1a3bI2pUAaXoapmK/NghVUMIJvg9o94/rE5YjXQ6fyBhyY5JWxLEfVJB8KTaCQOTYWAgH3ox6WVdyexoi7ZLb2w7MlWPo8Ov9OiMK0wmtl5ZLm3wS+d6H1tbPSF3sqr5IFnermjydVPB8VfPsklEyW2PwmB2qg/8z3YnyscvotneBfoTDQtCPyT9Mna3lHNQ6uB8vY93OjcmVFdZ7jeBW0Mb5/u/EmrkcDkWTZ6CwY9SZKFaUf88bk9kKlVShR1OUqcVgDdGtdG4SmIefBtg3fqnCjF1guJLkxaaOHqH9ZPWlCxVmJMABFMiuWaKiRFY1pq7WAFXu8tNOz34o5RYs2kNpbrWmnSIMbs9//iXpSWg4sj89aJtwr5iolW4+2axPjizevHt5zZF5QQfnL7I2+Lh4RGCkWeay8CbB0TAdDycG6nLLXiUfYgEcBrwUG56QxHRSuOvuVZz2yiSxZyffeZ3JQM= X-Forefront-Antispam-Report: CIP:194.138.21.75;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(376002)(39860400002)(346002)(136003)(396003)(46966006)(36840700001)(40470700004)(6916009)(2616005)(82740400003)(316002)(36756003)(186003)(1076003)(82310400005)(356005)(86362001)(81166007)(82960400001)(16526019)(36860700001)(83380400001)(2906002)(40480700001)(40460700003)(70586007)(70206006)(8676002)(4326008)(336012)(6666004)(4744005)(107886003)(44832011)(478600001)(47076005)(8936002)(41300700001)(956004)(5660300002)(26005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2022 17:29:45.2335 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 490a8589-edf9-4d13-17a0-08da89e410c3 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.75];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT103.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR10MB3854 X-Original-Sender: christian.storm@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=JQoNI8by; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of christian.storm@siemens.com designates 40.107.5.74 as permitted sender) smtp.mailfrom=christian.storm@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
bootloader: EBG: Short-circuit bootloader_env_set()
|
expand
|
On 29.08.22 19:30, Christian Storm wrote: > EBG's do_env_set() gets wired to bootloader_env_set(), > hence spare this indirection. > > Signed-off-by: Christian Storm <christian.storm@siemens.com> > --- > bootloader/ebg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/bootloader/ebg.c b/bootloader/ebg.c > index bb369d0..09e2785 100644 > --- a/bootloader/ebg.c > +++ b/bootloader/ebg.c > @@ -174,7 +174,7 @@ static int do_apply_list(const char *filename) > key = strtok(line, "="); > value = strtok(NULL, "\t\n"); > if (value != NULL && key != NULL) { > - if ((ret = bootloader_env_set(key, value)) != 0) { > + if ((ret = do_env_set(key, value)) != 0) { > break; > } > } Reviewed-by: Stefano Babic <sbabic@denx.de> Best regards, Stefano Babic
diff --git a/bootloader/ebg.c b/bootloader/ebg.c index bb369d0..09e2785 100644 --- a/bootloader/ebg.c +++ b/bootloader/ebg.c @@ -174,7 +174,7 @@ static int do_apply_list(const char *filename) key = strtok(line, "="); value = strtok(NULL, "\t\n"); if (value != NULL && key != NULL) { - if ((ret = bootloader_env_set(key, value)) != 0) { + if ((ret = do_env_set(key, value)) != 0) { break; } }
EBG's do_env_set() gets wired to bootloader_env_set(), hence spare this indirection. Signed-off-by: Christian Storm <christian.storm@siemens.com> --- bootloader/ebg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)