Skip to content

Commit

Permalink
zvol: remove unused variable
Browse files Browse the repository at this point in the history
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#12917
  • Loading branch information
nabijaczleweli authored and nicman23 committed Aug 22, 2022
1 parent 96e68ce commit fa6358a
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 @@ -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);

Expand Down

0 comments on commit fa6358a

Please sign in to comment.