diff options
author | наб <[email protected]> | 2021-12-09 23:40:17 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-12-13 15:50:09 -0800 |
commit | 1cfb6ef36eb71b9001fb2bd3d509c711cb5d1621 (patch) | |
tree | 15fe4ea283d6aa1974b3313485b5500786faef4f /lib/libzfs/libzfs_pool.c | |
parent | 9e184b7c35e5b7520275060996236805625fc184 (diff) |
libzfs: zpool_set_vdev_prop: remove unused vprop
Found by clang 14 with -Wunused-but-set-variable
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Rich Ercolani <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12829
Diffstat (limited to 'lib/libzfs/libzfs_pool.c')
-rw-r--r-- | lib/libzfs/libzfs_pool.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c index 867b72f2d..2179c03d7 100644 --- a/lib/libzfs/libzfs_pool.c +++ b/lib/libzfs/libzfs_pool.c @@ -5358,7 +5358,6 @@ zpool_set_vdev_prop(zpool_handle_t *zhp, const char *vdevname, const char *propname, const char *propval) { int ret; - vdev_prop_t vprop; nvlist_t *nvl = NULL; nvlist_t *outnvl = NULL; nvlist_t *props; @@ -5370,8 +5369,6 @@ zpool_set_vdev_prop(zpool_handle_t *zhp, const char *vdevname, if ((ret = zpool_vdev_guid(zhp, vdevname, &vdev_guid)) != 0) return (ret); - vprop = vdev_name_to_prop(propname); - if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) return (no_memory(zhp->zpool_hdl)); if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0) |