Skip to content

Commit

Permalink
zvol: remove unused variable
Browse files Browse the repository at this point in the history
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#12917
  • Loading branch information
nabijaczleweli authored and behlendorf committed Apr 29, 2022
1 parent 1bbd269 commit 8051762
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/zfs/zvol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8051762

Please sign in to comment.