aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-27 19:33:58 +0100
committerBrian Behlendorf <[email protected]>2022-05-02 15:42:58 -0700
commit9e68b734b37d6005c45c8a4096dcea2ef68716e7 (patch)
treeeccfb97d6b9cbeb4babb2a4f42de5236b9784f87 /module
parenta175fe82e64b3453eadce3c9165d73959a270ed0 (diff)
zvol: remove unused variable
Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12917
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zvol.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c
index 721a7b4b8..59b05b4b0 100644
--- a/module/zfs/zvol.c
+++ b/module/zfs/zvol.c
@@ -1353,13 +1353,12 @@ static void
zvol_rename_minors_impl(const char *oldname, const char *newname)
{
zvol_state_t *zv, *zv_next;
- int oldnamelen, newnamelen;
+ int oldnamelen;
if (zvol_inhibit_dev)
return;
oldnamelen = strlen(oldname);
- newnamelen = strlen(newname);
rw_enter(&zvol_state_lock, RW_READER);