libzfs: zpool_set_vdev_prop: remove unused vprop

Found by clang 14 with -Wunused-but-set-variable

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12829
This commit is contained in:
наб 2021-12-09 23:40:17 +01:00 committed by Brian Behlendorf
parent 9e184b7c35
commit 1cfb6ef36e

View File

@ -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)