Skip to content

Commit

Permalink
libzfs: zpool_set_vdev_prop: remove unused vprop
Browse files Browse the repository at this point in the history
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 openzfs#12829
  • Loading branch information
nabijaczleweli authored and nicman23 committed Aug 22, 2022
1 parent 2afe1e9 commit 1dd5b41
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/libzfs/libzfs_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -5357,7 +5357,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;
Expand All @@ -5369,8 +5368,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)
Expand Down

0 comments on commit 1dd5b41

Please sign in to comment.