git: 5d5d03356e21 - main - libsa/zfs: remove unused variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Aug 2025 14:53:37 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=5d5d03356e21123f7002aa4c13136db9761eb98c
commit 5d5d03356e21123f7002aa4c13136db9761eb98c
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-08-20 14:50:58 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-08-20 14:50:58 +0000
libsa/zfs: remove unused variable
In vdev_init_from_label() we obtain the pool guid but don't use it.
Reviewed by: tsoome, mav, imp
Differential Revision: https://reviews.freebsd.org/D51909
---
stand/libsa/zfs/zfsimpl.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c
index 971d71d098d3..0bf232710d7f 100644
--- a/stand/libsa/zfs/zfsimpl.c
+++ b/stand/libsa/zfs/zfsimpl.c
@@ -1165,13 +1165,11 @@ done:
static int
vdev_init_from_label(spa_t *spa, const nvlist_t *nvlist)
{
- uint64_t pool_guid, top_guid, txg;
+ uint64_t top_guid, txg;
nvlist_t *vdevs;
int rc;
- if (nvlist_find(nvlist, ZPOOL_CONFIG_POOL_GUID, DATA_TYPE_UINT64,
- NULL, &pool_guid, NULL) ||
- nvlist_find(nvlist, ZPOOL_CONFIG_TOP_GUID, DATA_TYPE_UINT64,
+ if (nvlist_find(nvlist, ZPOOL_CONFIG_TOP_GUID, DATA_TYPE_UINT64,
NULL, &top_guid, NULL) ||
nvlist_find(nvlist, ZPOOL_CONFIG_POOL_TXG, DATA_TYPE_UINT64,
NULL, &txg, NULL) != 0 ||