From 423fbd0c4b9dbe7be75d5bf0b2ab352af1138682 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Wed, 5 Jan 2022 16:19:47 +0000 Subject: [PATCH] Remove write-only variable newnamelen Signed-off-by: Ryan Moeller --- module/zfs/zvol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);