From 1cfb6ef36eb71b9001fb2bd3d509c711cb5d1621 Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 9 Dec 2021 23:40:17 +0100 Subject: libzfs: zpool_set_vdev_prop: remove unused vprop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by clang 14 with -Wunused-but-set-variable Reviewed-by: Brian Behlendorf Reviewed-by: Rich Ercolani Signed-off-by: Ahelenia Ziemiańska Closes #12829 --- lib/libzfs/libzfs_pool.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/libzfs/libzfs_pool.c') 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) -- cgit v1.2.3