Skip to content

Commit 5d5d033

Browse files
committed
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
1 parent 39fea5c commit 5d5d033

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stand/libsa/zfs/zfsimpl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,13 +1165,11 @@ vdev_from_nvlist(spa_t *spa, uint64_t top_guid, uint64_t txg,
11651165
static int
11661166
vdev_init_from_label(spa_t *spa, const nvlist_t *nvlist)
11671167
{
1168-
uint64_t pool_guid, top_guid, txg;
1168+
uint64_t top_guid, txg;
11691169
nvlist_t *vdevs;
11701170
int rc;
11711171

1172-
if (nvlist_find(nvlist, ZPOOL_CONFIG_POOL_GUID, DATA_TYPE_UINT64,
1173-
NULL, &pool_guid, NULL) ||
1174-
nvlist_find(nvlist, ZPOOL_CONFIG_TOP_GUID, DATA_TYPE_UINT64,
1172+
if (nvlist_find(nvlist, ZPOOL_CONFIG_TOP_GUID, DATA_TYPE_UINT64,
11751173
NULL, &top_guid, NULL) ||
11761174
nvlist_find(nvlist, ZPOOL_CONFIG_POOL_TXG, DATA_TYPE_UINT64,
11771175
NULL, &txg, NULL) != 0 ||

0 commit comments

Comments
 (0)