Message ID | 20220308085352.183941-4-gary.bisson@boundarydevices.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCL5RYHM6ECRBUNTTSIQMGQEFJYQFNY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=P/a2ejI1; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::103e; helo=mail-pj1-x103e.google.com; envelope-from=swupdate+bncbcl5ryhm6ecrbunttsiqmgqefjyqfny@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-pj1-x103e.google.com (mail-pj1-x103e.google.com [IPv6:2607:f8b0:4864:20::103e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KCTfW5BrNz9sGF for <incoming@patchwork.ozlabs.org>; Tue, 8 Mar 2022 19:54:43 +1100 (AEDT) Received: by mail-pj1-x103e.google.com with SMTP id m9-20020a17090ade0900b001bedf2d1d4csf1265496pjv.2 for <incoming@patchwork.ozlabs.org>; Tue, 08 Mar 2022 00:54:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646729681; cv=pass; d=google.com; s=arc-20160816; b=KT9HSVOgYIkQQBXVqXycfq5uDntWkQdVEaBDNAbdgQGpz1dTPtw+suVRNa71VN6vXu RY8JlxdpMiqp3CvCUCzG3Zs/LExHmAjPkICskL0PF2eaeS4cLsbzej3Sgs164eOhpof2 +9cgwOfftzkMuVI24xbAKfdMPY9BcpNemdntHS/q/XaRwvsZ6ZsApK4lMtL6YO84m450 ny/A+9BK7XLHzcccB4+3rocm6wljQybDxGHp3Jyz3T2fJRI4y8+ezgDDI1OOqjpzdt0O a/XzF4TG4nMTk3cWGYEP09LzcealOxuj1ZqRvz+er8+9R6BxNIpKeWUK0DgM9wlKa0pX J39w== ARC-Message-Signature: i=2; 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=yisc3rNUFdkjUMglx+IrxOvJNUiadXIa8wo4jawfyCU=; b=pMv31Qll1jI4o28Ulmj5qaDpIX3sAveG1lPifJEJXz2jdoEWh1Ur1SOjK4Y/ZvATef sPO0qOcXtL4jZrjt9NfK2g5W0u1KuhkGbAjsDrcZ7BaRrOB2wJDMjx8wYJOXjcw2pzhg 58jtg8RGUfJ1oFY/GvaJqUxMjasEGqZshA/DCxyi70u+y+arBzv8z+8vJTTDly5SJisZ RefXJ0rQnuLps9AUlhefE3C3UnxCYa6z7o8uBnsJ4WvIrYZ/fAhgO+2YI+haofJuxBl7 o5AqDGf+fgGUQcrGWsS9jKwHtEJnBNErfrM8TvzyH/uK1lUd7mboIQoEdQCJSDNbf4Ed OsOg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=Sr7YjfZ7; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=yisc3rNUFdkjUMglx+IrxOvJNUiadXIa8wo4jawfyCU=; b=P/a2ejI1f6ZWEODGhEtx4nQy4ZwsOb9N9VoBPwE5IGBBs0xGTs4+PBFi1lFsTkO69+ hoBCLkY9brqz+dJG8S/hHvUrjtlf+20/Lad1QyE29oiKW4cynaZqe0nHvLEAIcWyOpof m8NvkKiO9EBO8L8/4sl04XnVeVjMCQCLV9c5n1At9xiDe6JgXg8NQ/cChukyn9qLpUhs NYM/FjY3HkYJjiahfN8kIt/V6kdPRJr1aKfaoH/kMOB9fhGRbQjrGVt8wnOHg+loMIAd ZBhfcDvhgZE5ZSB3B96DaIqh9pIr03r1kMYcCxlMJSd0qIXLF5Jb3VNWf073qFFeb8tj iOmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=yisc3rNUFdkjUMglx+IrxOvJNUiadXIa8wo4jawfyCU=; b=54o+hi/ExaJYU23CQbU1b671ONr2ebYcO4PG2eUDLlI4zXjcqUDRGV6fnza+N6Rsgd YLXGCcn6ng/ncP9U06ik/KPTMLpztI9vDwTNroEH7fCvzsKshbcEXQRJ/g/c2TJ8C11f qAGUgvn3ZvrgjLHn1ID+YFxI7wlLrE/NVCtgh9q/ZtEAubNQZZyLU1eCR6k9e2ZTypD3 Xmac17/dj6B9mU2t8wEJPmlwQBQuVqpzMd/ylzESrzehTu/oIjwlwGEqw2E4hwrU8Cho FgDkgbfYzG8UhF/4tp20oX04R3JLBU0FWC44YRT3yLMENxyoHOWzK9iQeviUaQGBzut8 2vRQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM530VY/d5ncjEpyHuQAmUDjst4lwG1Gtym9v3OF2ThfouFWFJCjRW kKF71RyC1caNUlWAo4pI+10= X-Google-Smtp-Source: ABdhPJw6ckODMQ6wtDJ1nMe8/l5u3Gljs8mYPzdX647D7qyRWD/fGFIGckdCIlLrc7kR44M3FXrFdA== X-Received: by 2002:a17:90b:3b43:b0:1bf:8b53:c695 with SMTP id ot3-20020a17090b3b4300b001bf8b53c695mr2341001pjb.96.1646729681746; Tue, 08 Mar 2022 00:54:41 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:90b:4f41:b0:1bc:ff52:38de with SMTP id pj1-20020a17090b4f4100b001bcff5238dels1627979pjb.1.canary-gmail; Tue, 08 Mar 2022 00:54:41 -0800 (PST) X-Received: by 2002:a17:902:edc4:b0:151:5fbb:5f44 with SMTP id q4-20020a170902edc400b001515fbb5f44mr16428608plk.34.1646729681094; Tue, 08 Mar 2022 00:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646729681; cv=none; d=google.com; s=arc-20160816; b=hbKpdUzLRDs56VeX0Om7OjwNG955fRpjPWUNkXq19Ns5yx8Jbpp1Ul8eYz4sIMz9fU s4hD7M2U3kEEcSs0lKZ8SUMscYotv/1OO3ZSxEEurnw0M3J5XSu1RZ7LWrEQwk4Dd2Hw l9I0SZ5LsR03ZqpICyRNBGeYIyGapZkybILv8TQszvIIgysrJ3C+EI75ZxiseGAycfKN cmzKFlaknaWSIvxp+u9ndnswCem+jfUP6zf5ZOImwk0R5z2po00JVZJKoHanH/kHPaY2 FtQC1fQ4qJ7Qu1DxgAoy5v10ujAF2GA5Tkv2oAEgriVi9LT0Qin6rJVGSISS0ahn0mIX 3W2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=9QdNGJkUPjJhPYQds83hwBBsES14l4XcJQ4QRi0Lf4s=; b=ZUpNmi/buA1oVIRfF3+L2x5OQr9xkWL/JIannJoeN32fOLoBOgcCTE8FLM46gkssVq jxR47mOVsHjnbyOe4lKJXTEnKHODbXJjP8B7a6IOvkjWN/88X/GCXAiBNo46RNpUIo78 qhtsZl6R0v1mPznvkDeBIg8fJt5XakcngeANEvLKHOta8+TN8Fcj/zttCJsjFt4Gi0Pq Y3hZnik2vC2aem2m0tRYSMNEMw+6k5zLza+95mHQHFT9d3nFr0XI/NmUNpkpMgp2uzy2 sdMzv7LFan4KxYH6BTld+t0OKLnSLiQOYXxHsMJH2z9ov8omPh3je3Ve78oa7DmS3i87 5IXA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=Sr7YjfZ7; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com. [2607:f8b0:4864:20::433]) by gmr-mx.google.com with ESMTPS id i4-20020aa78d84000000b004e156ea5573si889736pfr.4.2022.03.08.00.54.41 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Mar 2022 00:54:41 -0800 (PST) Received-SPF: pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::433 as permitted sender) client-ip=2607:f8b0:4864:20::433; Received: by mail-pf1-x433.google.com with SMTP id z16so16772691pfh.3 for <swupdate@googlegroups.com>; Tue, 08 Mar 2022 00:54:41 -0800 (PST) X-Received: by 2002:a63:84c1:0:b0:380:64fd:a2d4 with SMTP id k184-20020a6384c1000000b0038064fda2d4mr5747418pgd.51.1646729680281; Tue, 08 Mar 2022 00:54:40 -0800 (PST) Received: from localhost.localdomain (2a01cb0007fc20008a20f9fbd85df515.ipv6.abo.wanadoo.fr. [2a01:cb00:7fc:2000:8a20:f9fb:d85d:f515]) by smtp.gmail.com with ESMTPSA id mp10-20020a17090b190a00b001bf8453aea8sm1888132pjb.42.2022.03.08.00.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 00:54:39 -0800 (PST) From: Gary Bisson <gary.bisson@boundarydevices.com> To: swupdate@googlegroups.com Cc: Gary Bisson <gary.bisson@boundarydevices.com> Subject: [swupdate] [PATCH v2 3/6] uboot_env: remove unused variables Date: Tue, 8 Mar 2022 09:53:49 +0100 Message-Id: <20220308085352.183941-4-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220308085352.183941-1-gary.bisson@boundarydevices.com> References: <20220306132635.220607-1-gary.bisson@boundarydevices.com> <20220308085352.183941-1-gary.bisson@boundarydevices.com> MIME-Version: 1.0 X-Original-Sender: gary.bisson@boundarydevices.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=Sr7YjfZ7; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com Content-Type: text/plain; charset="UTF-8" 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 | [v2,1/6] uboot_env: switch to strchr/strrchr | expand |
diff --git a/src/uboot_env.c b/src/uboot_env.c index 7dfb3c2..9993142 100644 --- a/src/uboot_env.c +++ b/src/uboot_env.c @@ -952,7 +952,6 @@ static int libuboot_load(struct uboot_ctx *ctx) size_t bufsize, usable_envsize; struct uboot_flash_env *dev; bool crcenv[2]; - unsigned char flags[2]; char *line, *next; uint8_t offsetdata = offsetof(struct uboot_env_noredund, data); uint8_t offsetcrc = offsetof(struct uboot_env_noredund, crc); @@ -1200,7 +1199,6 @@ int libuboot_read_config(struct uboot_ctx *ctx, const char *config) FILE *fp; char *line = NULL; size_t bufsize = 0; - int index = 0; int ret = 0; int ndev = 0; struct uboot_flash_env *dev;
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> --- Changelog v1->v2: - None --- src/uboot_env.c | 2 -- 1 file changed, 2 deletions(-)