From nobody Tue Apr 05 04:32:09 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 90C431A8FF5B; Tue, 5 Apr 2022 04:32:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KXZVd6VfGz4fhf; Tue, 5 Apr 2022 04:32:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lX+443ALpkcuA4ux4od1GgI9Z/QOorEHX+z+aFJ0uvU=; b=mWabWEPyPDwQT6FQ+53FZH9BeTKELnPgAAejPWoGkHCzaFER3KbyUMFeUCczwq4GXti08V QcBrVhAXComK1yzHktLXFMQVF3F0YREft0BdvaePtnZKbsrQ5NRqxWawjPbfiOA7YeJ821 MlBh0cpjDbzwSNz4zxFwcFS+DM/LmjcF3tx1aEr74JSRb2zOfhnw/KbNkGhgts0orc7uFn iKppeDwYuUxdnWu0aPd1GEBh7sbTvS/3kbQ0EiB9e519oiVS6ljSErBtZGHCCCctYEDPKv DyrqiUHlbg8sPa4qbEA3od5T9kbN0oMkB/+16LIrT21mdQ5erns33+yXFEDv4Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9B57E1FB40; Tue, 5 Apr 2022 04:32:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2354W9rP008629; Tue, 5 Apr 2022 04:32:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354W9fA008628; Tue, 5 Apr 2022 04:32:09 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:09 GMT Message-Id: <202204050432.2354W9fA008628@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 87a4328651b4 - main - bhnd_nvram_store_export_child: eliminate num_props write only variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 87a4328651b4e5f9114a7485cf67a3a300f668f3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lX+443ALpkcuA4ux4od1GgI9Z/QOorEHX+z+aFJ0uvU=; b=CCAeISWNTP5GcdU8QPU8BtXHTs2Hg5si65j0i2tI87qnzJMCS28FSOSiLtMIY2/0fv2U/h xhKmfm4m9XQ+ZJ0WYXaLDJsSdap5A3y2lNB7/D7tTJuQ50h4z7OqVkhU2rUFBQvp2MKD59 Gh+qqgiboEeeL4HkGKAucuvGJZqa/5SuBzZ+CLVwIaffR+a3Yds4yobTCdHSl+jm73psMc 1tUTsfTtQrxq6H/a35VNeO19fC8U+cDXgsNU/92tzfAcPwxHQVv1ITLAXJJumEbNjFhKKD KCgiKANjh7xuxrsZ149Z1xLikeq/0kz4v+cORzNOrRSNoY0Xn/TVIq/BgzMxnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133130; a=rsa-sha256; cv=none; b=WkSvMVmuo+bjmYmvoH/z1Xb0s0Q/UWm2u/ec2kzWhoo1GW3u0ioH0yYcV3d9UNBAc8PXdM ciXbcz0i5xL8XXBqjv9BUSXHNMnrs4vMyE7HUvLcGoTRTNLz+LmoW7oVTAGJaFYrTuJ66F v3w+0mPCaiqbOtsCLxaWXLUdMx+kUJKIKoA6ymls6b5IQU69KU6fhZ39x8cGItAIoN9SdM ju/22+CcA3r4i+vzQmexSUuO/VLiPkNERRLMZ+n1LHg4q0FFKCNtHQyPncOwF4pa9LXe+I LJEGJ0Rn61nLpeuaYZx9ECgNuWBrQ3OXTat9RV2+/c03epQ75Y0rWdXnwkFSTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=87a4328651b4e5f9114a7485cf67a3a300f668f3 commit 87a4328651b4e5f9114a7485cf67a3a300f668f3 Author: Warner Losh AuthorDate: 2022-04-04 23:59:13 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:21 +0000 bhnd_nvram_store_export_child: eliminate num_props write only variable Sponsored by: Netflix --- sys/dev/bhnd/nvram/bhnd_nvram_store.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/bhnd/nvram/bhnd_nvram_store.c b/sys/dev/bhnd/nvram/bhnd_nvram_store.c index 3a8b7204e254..5b165b0d3fb2 100644 --- a/sys/dev/bhnd/nvram/bhnd_nvram_store.c +++ b/sys/dev/bhnd/nvram/bhnd_nvram_store.c @@ -625,14 +625,13 @@ bhnd_nvram_store_export_child(struct bhnd_nvram_store *sc, const char *relpath; char *prefix, *namebuf; size_t prefix_len, relpath_len; - size_t namebuf_size, num_props; + size_t namebuf_size; bool emit_compact_devpath; int error; BHND_NVSTORE_LOCK_ASSERT(sc, MA_OWNED); prefix = NULL; - num_props = 0; path_vars = NULL; namebuf = NULL;