diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index cb5ee483c1c1..31b3b91d6526 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -1311,13 +1311,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);