From 805176241d77b4d642344bd88a43d51f458866d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Mon, 27 Dec 2021 19:33:58 +0100 Subject: [PATCH] zvol: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Matthew Ahrens Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #12917 --- 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 721a7b4b878e..59b05b4b08d0 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);