From patchwork Fri Jul 14 18:28:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Venekamp X-Patchwork-Id: 1808011 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=W9PeGem7; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (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 4R2g5m6DsWz20bh for ; Sat, 15 Jul 2023 04:30:52 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yyu5DkapjiHqHOcI5JGWi7/ZsS19FX11PcZCD1008MI=; b=W9PeGem7OkAMLi AJOzjNi/bBDv40dIeCZnKVmfp6L2EKBTRs0ILCyhLdx6v+qO/sHXb9x1Z6ZuC//yS1u3wsxE/KG8C eynun7DMYQBkSNjClAhIjkkBa9yeYm4HPjnvXZ2MkJyk9bK9aFxVQJOCVtY8rFEOGigwtmS74L5n+ pGE9si3VzynFvnu1qKYE8XlH/uGQ+39Si0QrOM9t2PlsbzvgElk9jAjeiUX2qf0i2JYY9aL2NTAsm TxubPK5zqKdb/2sjxwFo2fXjAyq+PDnWBKPy7BaGM9iMYYaqGBEVzoA/p5XK7wHDLzD7ikWrfTzXL LbLRbFcoDNzLRxWJ+kwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qKNWg-006xkj-1B; Fri, 14 Jul 2023 18:28:22 +0000 Received: from virt1.bvwebdesign.nl ([149.210.228.112]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qKNWa-006xiN-2t for openwrt-devel@lists.openwrt.org; Fri, 14 Jul 2023 18:28:18 +0000 Received: from localhost.localdomain (83-82-122-37.cable.dynamic.v4.ziggo.nl [83.82.122.37]) by virt1.bvwebdesign.nl (Postfix) with ESMTPSA id 97E31878965 for ; Fri, 14 Jul 2023 20:28:11 +0200 (CEST) From: Jan Venekamp To: openwrt-devel@lists.openwrt.org Subject: [PATCH uci 0/2] remove internal usage of redundant uci_ptr.last Date: Fri, 14 Jul 2023 20:28:09 +0200 Message-Id: <20230714182811.20444-1-jan@venekamp.net> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230714_112817_068846_E8CD9DE7 X-CRM114-Status: UNSURE ( 4.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Remove internal usage of redundant uci_ptr.last in order to fix issue and simplify code. Jan Venekamp (2): file: Fix uci -m import command remove internal usage of redundant uci_ptr.last cli.c | 39 +++++++++++ delta.c | 10 ++++++---- file.c | 2 +- list.c | 6 ------ lua/uci.c | 42 +++++++++++++++ 5 files changed, 33 insertions(+), [...] Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Remove internal usage of redundant uci_ptr.last in order to fix issue and simplify code. Jan Venekamp (2): file: Fix uci -m import command remove internal usage of redundant uci_ptr.last cli.c | 39 +++++++++++---------------------------- delta.c | 10 ++++++---- file.c | 2 +- list.c | 6 ------ lua/uci.c | 42 +++++++++++++++--------------------------- 5 files changed, 33 insertions(+), 66 deletions(-)