git: 3fb60281e107 - stable/13 - bhnd_nvram_store_export_child: eliminate num_props write only variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:29:22 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=3fb60281e10798801e3f47736379e5df2cb22eba
commit 3fb60281e10798801e3f47736379e5df2cb22eba
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:29 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:51 +0000
bhnd_nvram_store_export_child: eliminate num_props write only variable
Sponsored by: Netflix
(cherry picked from commit 87a4328651b4e5f9114a7485cf67a3a300f668f3)
---
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;