zvol: remove unused variable
Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12917
This commit is contained in:
parent
a175fe82e6
commit
9e68b734b3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue